Mailing Lists: Apple Mailing Lists

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

Creating a CIImage using self.contents of a layer



I'm wanting to create a CIImage from the content of a layer.

The docs state that:

"A layer can set this property to a CGImageRef to display the image as its contents. The default value is nil."

What does a layer return? It doesn't appear to be a CGContext, as with something like a CATextLayer (what I'm using right now) the app will crash if I attempt to do:

	CIImage *image = [CIImage imageWithCGImage:(CGImageRef)self.contents];


Is clarification of the intended behavior available?

--
Regards,
Neil Clayton,  http://shinywhitebox.com







_______________________________________________
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


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.