Hi, sorry I should have stated that its an opengl view. Searching the web, I think I have to manually use glReadPixels, which is fine.

After getting the buffer I tried creating a UIImage using:
[UIImage imageWithData:[NSData dataWithBytesNoCopy:...]

But it doesn't work, I guess imageWithData is expecting image data (i.e. file format), not pixel data. How can I create a UIImage from pixel data? do I need to go into coregraphics? (e.g. CGCreateImage)?


On 15 Jan 2009, at 16:45, Robert Marini wrote:

Take a look at UIGraphicsGetImageFromCurrentImageContext() (or something like that, don't have the docs handy).

-rob.

On Jan 15, 2009, at 11:18 AM, Memo Akten wrote:

wow i did not know that, brilliant thanks! is there a way to do it programmatically? i could not find it in the docs...


On 15 Jan 2009, at 16:17, danton chin wrote:

Memo,

While in your iPhone app hold down the power off button then hit the home button. A picture of the current screen will be added to your photo album.

On Thu, Jan 15, 2009 at 11:08 AM, Memo Akten <m...@memo.tv> wrote:
Not sure if this is the right place for this, but is it possible for my app to screengrab what its done and save it to the photo app?

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/roadwarriorone%40gmail.com

This email sent to roadwarrior...@gmail.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/rob%40pinchmedia.com

This email sent to r...@pinchmedia.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/memo%40memo.tv

This email sent to m...@memo.tv

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to