CGImageRef to bitmap context?
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