Page 1 of 1
Histogram?
Posted: 2016-06-09T10:07:25-07:00
by Vancete
Hello!
I'm trying to show the histogram as image in my project, but the image.histogram returns a Collection.
What should I do with that?
Thanks in advance
Re: Histogram?
Posted: 2016-06-10T01:51:44-07:00
by dlemstra
The Histogram method returns a dictionary of colors and the number of times that color is found in the image. If you want to write an image of the histogram of an image you will need to do the following:
Code: Select all
image.Write(@"histogram:c:\your\folder\yourFile.jpg");
Re: Histogram?
Posted: 2016-06-10T06:52:15-07:00
by Vancete
dlemstra wrote:The Histogram method returns a dictionary of colors and the number of times that color is found in the image. If you want to write an image of the histogram of an image you will need to do the following:
Code: Select all
image.Write(@"histogram:c:\your\folder\yourFile.jpg");
Is there any way to get directly a Bitmap instead of writing it to a file?
Thanks for the answer