• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to create CIImage from CGContextRef ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: How to create CIImage from CGContextRef ?
      • From: Scott Thompson <email@hidden>
  • Prev by Date: Re: "No Selection" in Core Data
  • Next by Date: Re: Better way to launch applications in Cocoa
  • Previous by thread: Storing TableView's highlighted column & sort order in a preference
  • Next by thread: Re: How to create CIImage from CGContextRef ?
  • Index(es):
    • Date
    • Thread