Average/dominating color in image
-
Hey, Is is possible to find the average (dominating) color in an image. For example it there's mostly white in the image, it should Messagebox.Show("Average Color: #FFFFFF") or MessageBox.Show("Average Color: R=255 G=255 B=255). Thanks,
It depends how you define average color :)
Giorgi Dalakishvili #region signature my articles My blog[^] #endregion
-
It depends how you define average color :)
Giorgi Dalakishvili #region signature my articles My blog[^] #endregion
There is alpha parameter. From here u can get exact decimal no.
-
Hey, Is is possible to find the average (dominating) color in an image. For example it there's mostly white in the image, it should Messagebox.Show("Average Color: #FFFFFF") or MessageBox.Show("Average Color: R=255 G=255 B=255). Thanks,
Loop through the pixels in an image and see the results. A quick hack is to scale a bitmap to 1 pixel and read the color of the only pixel which should be the average and the results will depend on the scaling algorithm. I think your question is what is the mode color?
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
Most of this sig is for Google, not ego.