mohamadDev / aforge

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

Error in AForge.Imaging.Filters.Crop.ProcessFilter() #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. Create an instance of the Crop class.
2. Apply the filter on an image.
3. Investigate the result image (in my case the Palette property throws an
exception).

Reproduced on AForge.NET Framework 2.0.0 BETA from 20.03.2009

The pixelSize value must be calculated as (Crop.cs:118)
   Image.GetPixelFormatSize( sourceData.PixelFormat ) / 8
instead of
   Image.GetPixelFormatSize( sourceData.PixelFormat )
This causes the resulting image to be damaged.

Original issue reported on code.google.com by NNi...@gmail.com on 8 Apr 2009 at 11:12

GoogleCodeExporter commented 9 years ago
It was already fixed yesturday:
http://code.google.com/p/aforge/source/detail?r=957

Original comment by andrew.k...@gmail.com on 8 Apr 2009 at 11:16

GoogleCodeExporter commented 9 years ago
This has been done really fast :)

Original comment by NNi...@gmail.com on 8 Apr 2009 at 11:23

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 22 Jul 2009 at 3:50