How to create CIImage from CGContextRef ?
How to create CIImage from CGContextRef ?
- Subject: How to create CIImage from CGContextRef ?
- From: Pierre CHATEL <email@hidden>
- Date: Sun, 26 Jun 2005 00:00:28 -0300
Hi,
is there a way to create a CIImage from a CGContectRef (which is
*not* a bitmap context) ?
I need to create a CIImage from an overlay window.
Here is my code:
CGContextRef overlayContext;
QDBeginCGContext(GetWindowPort(overlayWindow), &overlayContext);
//doesn't work since overlayContext is not a bitmap context !
CGImageRef overlayImage = CGBitmapContextCreateImage(overlayContext);
CIImage *initialCIImage = [[CIImage alloc]
initWithCGImage:overlayImage];
Thanks,
Pierre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden