Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing image data within a CIImage?



On Jun 13, 2005, at 3:51 PM, email@hidden wrote:
On Jun 13, 2005, at 3:14 PM, Nick Nallick wrote:
There isn't any image data in a CIImage, it's a list of operations to be performed when drawing.  In order to get image data you have to render it.
Does this mean that the only place the image data is accessible is from the NSView that it's been rendered into? I don't see how to obtain this from the view.

No, you render into a CIContext, which you will have created from a CGContext, or from a GLContext, or from a reference to some destination pixel data.

In this case a CG bitmap context would probably be what you want.
Once rendered, how do you associate a CG bitmap context with it?

That's backwards. If you want pixel data (in RAM), you should create a CG bitmap context, and then render into that. Then you will have pixels.

Dave Howell
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden

References: 
 >Accessing image data within a CIImage? (From: email@hidden)
 >Re: Accessing image data within a CIImage? (From: Nick Nallick <email@hidden>)
 >Re: Accessing image data within a CIImage? (From: email@hidden)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.