Converting NSImage to CGImage
Converting NSImage to CGImage
- Subject: Converting NSImage to CGImage
- From: Antonio Nunes <email@hidden>
- Date: Sun, 12 Nov 2006 19:48:20 +0000
Hi,
I have NSImages of different types (jpg, png, tiff, psd, etc) and
need to draw them into a CGContext (CGPDFContext to be precise).
Looking for info on how to convert an NSImage to a CGImage, I get
mostly topics which explain how to do it the other way around. The
closest thing I found is webkit's "WebConvertNSImageToCGImageRef",
but I'm not so sure it will do for my needs. So two questions:
1. Would the webkit's function gracefully handle large images?
2. Are there other ways to accomplish the conversion?
António
-----------------------------------------------------------
Don't believe everything you think
-----------------------------------------------------------
_______________________________________________
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