CIContext to NSImage

  • How should one go about getting the data from a CIContext into an
    NSImage object?

    Thanks,
    Jason
  • If you're targeting >= 10.4, simply lock focus onto an NSImage and
    draw the contents of your CIContext with one of the draw methods of
    CIContext. If you're targeting >= 10.5, you can do that or render the
    CIContext's contents as bitmap data, use it as an NSBitmapImageRep
    data source, and then add that representation to an NSImage.

    --
    m-s

    On 05 Dec, 2007, at 15:54, Jason Barker wrote:

    > How should one go about getting the data from a CIContext into an
    > NSImage object?
    >
    >
    > Thanks,
    > Jason
previous month december 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Go to today