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