Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
cyberfly
Posted - Aug 24 2022 : 20:51:44 I am trying to get the RGB values of a pixel. I know I have to use GetPixel to get it but it is not clear how it is used. Is there an example using GetPixel to get an RGB value?
I have the following code but I don't know what the 3rd parameter "color" is supposed to be.
private void ieViewer1_MouseMove(object sender, MouseEventArgs e) { int PixelXpos = ieViewer1.XClientToBitmap(e.X); int PixelYpos = ieViewer1.YClientToBitmap(e.Y); Color ColorOfPixel; ColorOfPixel = ieViewer1.Image.GetPixel(PixelXpos, PixelYpos, Color); }