Re: Getting Pixel values of an image
Re: Getting Pixel values of an image
- Subject: Re: Getting Pixel values of an image
- From: Andrew Zamler-Carhart <email@hidden>
- Date: Wed, 15 Dec 2004 12:32:46 +0000
Dear Anish,
You can call -lockFocus on the image, and then use NSReadPixel().
NSPoint point = NSMakePoint(x, y);
NSColor *colorAtPoint;
[image lockFocus];
colorAtPoint = NSReadPixel(point);
[thumbnail unlockFocus];
Best regards,
Andrew
KavaSoft
On Dec 15, 2004, at 6:33 AM, Anish Kumar wrote:
Can anyone please tell me how to get the pixel value of an image. I
mean to say that the
pixel values should be same for a particular position in the image
irrespective of the how
much the image isĀ zoomed.
thanks in advance,
-Anish
<inbox.gif> _______________________________________________
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
_______________________________________________
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