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 4:24 PM, Dave Howell wrote:

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.

Of course, my understanding was wrong. I'm just learner.

From your replies, I now use
NSBitmapImageRep *bitmapRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes::::::::];
and then
CIContext *context = [[NSGraphicsContext graphicsContextWithBitmapImageRep:bitmapRep] CIContext];
[context drawImage:::];


Now in [bitmapRep bitmapData] I have RGBA data. Plus, I can also do
CIContext *context2 = [[NSGraphicsContext currentContext] CIContext];
[context2 drawImage:::];
to draw in the NSView on screen at same time.


Thanks!
Roland


_______________________________________________ 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)
 >Re: Accessing image data within a CIImage? (From: Dave Howell <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.