Re: Getting Pixel values of an image
Re: Getting Pixel values of an image
- Subject: Re: Getting Pixel values of an image
- From: "Anish Kumar" <email@hidden>
- Date: 16 Dec 2004 13:06:08 -0000
Hi,
I think my question was not clearer or misunderstood. My question is something similar to
http://lists.apple.com/archives/cocoa-dev/2002/Sep/msg01161.html
I just want to know what is the position of a particular pixel in an image. If I were not to
zoom the image then I could use the current mouse position and take that as my pixel
position for a particular location in the image. But when I zoom my images and try to get
the pixel value ( I mean mouse location!) of a particular postion in the image, the results I
get will obviously be different when the image was 100% (original scale) and when the
image is say 200% zoomed as the frane size increase and so do the image is changed.
The above link just tries to solve that, but I am not able to figure out how it can be done.
Any example how to do that will be of great help.
thanks,
-Anish
On Thu, 16 Dec 2004 John C.Randolph wrote :
>On Dec 14, 2004, at 10:33 PM, Anish Kumar wrote:
>
>
>>Hi All,
>>
>>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.
>Try:
>
>http://developer.apple.com/samplecode/Color_Sampler/Color_Sampler.html
>
>"
>Description
>
>This sample demonstrates one way to sample the color at a given point in an NSView.
Requirements: Mac OS X Version 10.2 (Jaguar) Keywords: color imaging magnification"
>
>
>-jcr
>
>
>>
>John C. Randolph <email@hidden> (408) 974-8819
>Sr. Cocoa Software Engineer,
>Apple Worldwide Developer Relations
>http://developer.apple.com/cocoa/index.html
>
>
_______________________________________________
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