Re: Quartz Composer Output to OpenGL or CIFilter
- Subject: Re: Quartz Composer Output to OpenGL or CIFilter
- From: Pierre-Olivier Latour <email@hidden>
- Date: Mon, 19 Sep 2005 13:25:13 -0700
- Delivered-to: email@hidden
- Delivered-to: email@hidden
I'm using the code at the bottom of the page of TN2143 (http://
developer.apple.com/technotes/tn2005/tn2143.html)
To wit:
NSSize imageSize;
NSBitmapImageRep* bitmapImage;
NSImage* image = imgOut; // image from my qtz renderer
if(image) {
imageSize = [image size];
[image lockFocus];
bitmapImage = [[NSBitmapImageRep
initWithFocusedViewRect:NSMakeRect(0, 0, size.width, size.height)];
[image unlockFocus];
CIImage* im = [[[CIImage alloc]
initWithBitmapImageRep:bitmapImage] autorelease];
}
There is a typo in the technote sample code: it should read:
[[NSBitmapImageRep alloc] initWithFocusedViewRect:...
________________________________________________________
Pierre-Olivier Latour email@hidden
Quartz Composer Architect Graphics & Imaging Team
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden
This email sent to 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.