• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: save screengrab on iphone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: save screengrab on iphone


  • Subject: Re: save screengrab on iphone
  • From: Memo Akten <email@hidden>
  • Date: Fri, 16 Jan 2009 13:10:01 +0000

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 <email@hidden> 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 (email@hidden)

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:
This email sent to email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: save screengrab on iphone
      • From: David Duncan <email@hidden>
References: 
 >save screengrab on iphone (From: Memo Akten <email@hidden>)
 >Re: save screengrab on iphone (From: danton chin <email@hidden>)
 >Re: save screengrab on iphone (From: Memo Akten <email@hidden>)
 >Re: save screengrab on iphone (From: Robert Marini <email@hidden>)

  • Prev by Date: Smart Folders and NSOpenPanel
  • Next by Date: RE: Report writer for Cocoa?
  • Previous by thread: Re: save screengrab on iphone
  • Next by thread: Re: save screengrab on iphone
  • Index(es):
    • Date
    • Thread