Is this easy? Finding the RGB values of a photo?

  • Thread starter Thread starter samadams_2006
  • Start date Start date
S

samadams_2006

Hello,

There are various "Color Pickers" out there, where a series of colors
are displayed on a grid and when the user clicks one of these colors,
it is selected, and processed by the application. NOW THE QUESTION:

Is there an easy way to do this in the opposite direction? For
example, what if you have a photographic image and would like to
determine the RGB values of a certain section of the photograph?

Thanks
Sam
 
(e-mail address removed) wrote in @n76g2000hsh.googlegroups.com:
and would like to
determine the RGB values of a certain section of the photograph?

what do you consider a section... and what do you consider the RGB value of
the section? Average RGB, max, min, etc?
 
Hello,

There are various "Color Pickers" out there, where a series of colors
are displayed on a grid and when the user clicks one of these colors,
it is selected, and processed by the application. NOW THE QUESTION:

Is there an easy way to do this in the opposite direction? For
example, what if you have a photographic image and would like to
determine the RGB values of a certain section of the photograph?

Thanks
Sam

If you're just after obtaining the Color Value of a Pixel within your
image, see "GetPixel" method in Help.

ShaneO

There are 10 kinds of people - Those who understand Binary and those who
don't.
 
There are various "Color Pickers" out there, where a series of colors
are displayed on a grid and when the user clicks one of these colors,
it is selected, and processed by the application. NOW THE QUESTION:

Is there an easy way to do this in the opposite direction? For
example, what if you have a photographic image and would like to
determine the RGB values of a certain section of the photograph?

Load the image into an 'Image'/'Bitmap' object and use its 'GetPixel' method
to determine the color of a certain pixel.
 
(e-mail address removed) wrote in @n76g2000hsh.googlegroups.com:


what do you consider a section... and what do you consider the RGB value of
the section? Average RGB, max, min, etc?

Say I have a photograph of oh, 1000 x 1000 pixel. I want to get a
certain section of this photograph, say 25 x 25 pixels, as it is a
photograph, all the pixels might have and probably will have differing
pixel values. I was wondering the best way to determine the "average"
or "whatever" of this 25 x 25 pixel region, and determine an "average"
or "estimate" RGB value for this section of the photograph. In other
words, even though all the pixels are probably different, as a
"region" they might be pink if on a face, or blue if the ocean, etc.

Perhaps there is software out there that will do this?

Thanks
 
Back
Top