CIImage <-> bitmap data <-> NSImage
CIImage <-> bitmap data <-> NSImage
- Subject: CIImage <-> bitmap data <-> NSImage
- From: "Simon Raisin" <email@hidden>
- Date: Wed, 17 Oct 2007 08:37:59 -0400
I have a test application that creates a CIImage instance from an on-disk
image file (jpg, tiff, bmp, etc.).
I need to apply several core image filters then obtain the raw bitmap data
for that image so that I can apply a few hand-created "filters". I _may_
need to convert the resulting data into an NSImage. Actually I may have to
move between an arbitrary number of a closed set of representations.
I've found several code snippets than render a CIImage instance into an
offscreen bitmap, but I've seen non-deterministic results (possibly a
problem with the code I grabbed).
This doesn't seem, to me anyway, that what I am trying to do is that
uncommon, yet moving image representations between Core Image, Cocoa
(NSImage), and raw data doesn't seem very straightforward - which leads me
to believe that I am missing something. (And yes, I realize that a CIImage
is just a "recipe"; there is no underlying image representation until it is
"rendered").
Any pointers would be appreciated,
CxT
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden