draco1023 / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

Exception when passing a Bitmap to Threshold functions #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Bitmap _bmpToFilter = new Bitmap.LoadFromFile(fileName);
Bitmap _bmpT = new Threshold().Apply(_bmpToFilter);

What is the expected output? What do you see instead?

The Threshold().Apply() method is overloaded and accepts also Bitmaps or
BitmapData but only works if you pass a BitmapData like this...

IFilter grayscaleFilter = new GrayscaleRMY();
Bitmap _bmpToFilter = new Bitmap.LoadFromFile(fileName);
Bitmap _bmpT = new Threshold().Apply(grayscaleFilter.Apply(_bmpToFilter));

What version of the product are you using? On what operating system?

Version 1.5.1 on Windows XP Professional SP2
NET Framework 2.0

Please provide any additional information below.

Original issue reported on code.google.com by jorgecar...@gmail.com on 19 Jan 2008 at 11:31

GoogleCodeExporter commented 9 years ago
Please, read documentation before posting an issue. All threshold filters are 
designed to work with grayscale images. So it is not an issue.

Original comment by andrew.k...@gmail.com on 20 Jan 2008 at 2:38