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: Quartz Composer Output to OpenGL or CIFilter



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
References: 
 >Quartz Composer Output to OpenGL or CIFilter (From: Mark Coniglio <email@hidden>)
 >Re: Quartz Composer Output to OpenGL or CIFilter (From: Pierre-Olivier Latour <email@hidden>)
 >Re: Quartz Composer Output to OpenGL or CIFilter (From: Mark Coniglio <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.