FROM : Ken Ferry
DATE : Wed Feb 20 23:29:01 2008
> I think it will cost too much performance to convert the CGImage objects to other formats, e.g. NSImage, CIImage.
It isn't very expensive to make an NSImage from a CGImage. If you
create an NSBitmapImageRep with -initWithCGImage:, the
NSBitmapImageRep will just reference the CGImage and draw it when
necessary. There is no conversion of the data.
-Ken
On Wed, Feb 20, 2008 at 2:21 PM, Leopard x86
<mailinglist.<email_removed>> wrote:
> Hi everyone.
> After reading the Quartz Graphics programming document, I am still
> trying to find a method to draw a CGImageRef object "directly" to a
> NSView / NSOpenGLView ...
>
> My application decodes some files on the disk to into CGDataProvider,
> then uses the CGDataProviders to create CGImageRefs. 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.
> Good Luck.
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>
DATE : Wed Feb 20 23:29:01 2008
> I think it will cost too much performance to convert the CGImage objects to other formats, e.g. NSImage, CIImage.
It isn't very expensive to make an NSImage from a CGImage. If you
create an NSBitmapImageRep with -initWithCGImage:, the
NSBitmapImageRep will just reference the CGImage and draw it when
necessary. There is no conversion of the data.
-Ken
On Wed, Feb 20, 2008 at 2:21 PM, Leopard x86
<mailinglist.<email_removed>> wrote:
> Hi everyone.
> After reading the Quartz Graphics programming document, I am still
> trying to find a method to draw a CGImageRef object "directly" to a
> NSView / NSOpenGLView ...
>
> My application decodes some files on the disk to into CGDataProvider,
> then uses the CGDataProviders to create CGImageRefs. 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.
> Good Luck.
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>
| Related mails | Author | Date |
|---|---|---|
| j o a r | Feb 20, 15:34 | |
| glenn andreas | Feb 20, 16:12 | |
| Mike Abdullah | Feb 20, 16:12 | |
| David Duncan | Feb 20, 19:24 | |
| Leopard x86 | Feb 20, 23:21 | |
| Ken Ferry | Feb 20, 23:29 | |
| Ken Ferry | Feb 20, 23:34 | |
| j o a r | Feb 21, 00:04 | |
| Jim Correia | Feb 21, 00:26 | |
| Ken Ferry | Feb 21, 00:44 | |
| Jim Correia | Feb 21, 14:26 |






Cocoa mail archive

