You can't read the pixels color like that. The pallete is the colors used
inside the image, not the pixels itself. Further more the image my not have
color palette at all.
The result that you get from your code is correct. The ColorPalette.Entries
property is of type array of Colors - Color[]. There is nothing more that
the ToString can return, but the name of the type.
In order to read the pixels of an image you need to create a Bitmap from
that image and then use Bitmap's GetPixel method.
To create the Bitmap you can use the constructor overload that has an Image
parameter
--
HTH
Stoitcho Goutsev (100)
"Vrijbuiter" <a_*************@hotmail.com> wrote in message
news:11**********************@y41g2000cwy.googlegr oups.com...
I want to detect a pixel color number when i move the mouse over de
picturebox.
I think the next line has the color but i don't now how i get it:
System.Drawing.Point pt = new Point() ;
pt.X =151;
pt.Y =195;
this.textBox3.Text =
string.Format("{0}",pictureBox1.Image.Palette.Entr ies.ToString() ) ;
this line gives the string System.Drawing.Color[]
Can some one give me a hint?
With kind regards,