Re: How to draw a CGImage object to a NSView?
Re: How to draw a CGImage object to a NSView?
- Subject: Re: How to draw a CGImage object to a NSView?
- From: j o a r <email@hidden>
- Date: Wed, 20 Feb 2008 15:34:32 +0100
On Feb 20, 2008, at 11:21 PM, Leopard x86 wrote:
I think it will cost too much performance to convert the CGImage
objects to other formats, e.g. NSImage, CIImage. So I am wondering a
direct way to draw CGImage to a NSView or NSOpenGLView.
Can anyone give me a suggestion? Thank you very much in advanced.
Have you considered using an IKImageView? Alternatively, have a look
at CGContextDrawImage().
You might also want to benchmarking going from CGImage -> NSImage.
Depending on the type of images you're working with, and how
frequently you would do this conversion, it might be perfectly usable.
j o a r
_______________________________________________
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