Re: NSImage get / set Pixels
Re: NSImage get / set Pixels
- Subject: Re: NSImage get / set Pixels
- From: "John C. Randolph" <email@hidden>
- Date: Fri, 17 Mar 2006 12:50:55 -0800
On Mar 17, 2006, at 8:37 AM, goessly wrote:
What are you trying to accomplish?
Actually I'm recycling an old project of mine, a GIMP-Plugin for
removing perspective distortions form input pictures, to Cocoa.
From a given set of reference points I calculate a calibration
matrix of sorts. This is used to obtain - for each pixel in the
output-pic - the color of the corresponding, non-distorted point
from the source-image.
I receive the correct values from my math-routines, but am quite
unable to write them to a visible output. I'm attempting to write
them to a (focussed) NSBitmapImageRep *outRep, which in turn is
passed to an NSImage outputImage in order to be drawn into an
NSImageView. But the ImageView remains empty, and I don't know why.
Any hints?
Yep. It's a job for CoreImage. Start here:
file:///Developer/ADC Reference Library/documentation/
GraphicsImaging/Conceptual/CoreImaging/index.html
-jcr
John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.
_______________________________________________
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