Re: WebConvertNSImageToCGImageRef Issues
Re: WebConvertNSImageToCGImageRef Issues
- Subject: Re: WebConvertNSImageToCGImageRef Issues
- From: John Pannell <email@hidden>
- Date: Mon, 16 Jan 2006 09:49:00 -0700
Hi Chad-
Thanks for the code, though really I need some way to deal with
arbitrary NSImages.
You can replace the PNG specific call in my function with the more
generic CGImageCreate, or any of the CGImageSourceCreate* functions
if you are targeting Tiger. There is also
GraphicsImportCreateCGImage, which uses QuickTime to import the
image. I went with the PNG solution because it required few
parameters compared to the other functions. All are documented in
the XCode documentation.
For anyone interested in CoreGraphics, I cannot speak highly enough a
book announced in one of Apple's recent developer newsletters:
Programming with Quartz, by Gelphman and Laden. Well written,
concise, many examples... it is a very good book for anyone
interested in the drawing mechanics underlying Cocoa and Carbon.
Hope this helps!
John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden