• 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
CGImageRef to bitmap context?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CGImageRef to bitmap context?


  • Subject: CGImageRef to bitmap context?
  • From: Mike McNamara <email@hidden>
  • Date: Sun, 12 Aug 2007 21:30:39 -0600


Hello all -

I've been using the handy glgrab.c code:

http://www.cocoabuilder.com/archive/message/cocoa/2005/8/13/144256

for grabbing captures of small portions of the screen. Very handy! My app in fact works fine, except for the fact that the captured screen portion is not really a good pixel for pixel representation when I magnify it. At first I thought the capture was simply being antialiased somehow and as such tried all sorts of voodoo to eliminate that. However that appears to be a dead end. It now seems probable to me that my issue has something to do with the fact that the CGImageRef returned by grabViaOpenGL() in glgrab.c is not a bitmap style image and as such does not scale up like a bitmap would? Am I headed down the right road here? Is there an easy / efficient way to convert the original sized CGImageRef to a bitmap context and scale up as needed from there?

I did in fact find:

http://developer.apple.com/qa/qa2007/qa1509.html

but openly admit that I am having difficulty seeing how I would apply it to my situation.

Advice welcomed and appreciated!

Thanks you.


_______________________________________________

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: CGImageRef to bitmap context?
      • From: Uli Kusterer <email@hidden>
    • Re: CGImageRef to bitmap context?
      • From: Scott Thompson <email@hidden>
  • Prev by Date: Re: iPhoto 08 Plugin SDK question
  • Next by Date: Any way to ensure that my app will terminate before Finder does on log out, restart, etc.?
  • Previous by thread: Multiple NSPredicates to filter an NSArrayController
  • Next by thread: Re: CGImageRef to bitmap context?
  • Index(es):
    • Date
    • Thread