What steps will reproduce the problem?
If you start with a PNG that has a transparent background and run it through
GetThumbnailImage the transparent sections will be changed to black. If I alter
the background color, I can change that to another color, but not transparent.
What is the expected output? What do you see instead?
It would be ideal if transparency could be preserved. However, this would
require a different PixelFormat be used than the hardcoded value in the library
(Format24bppRgb).
What version of the product are you using? On what operating system?
1.2.4
Please provide any additional information below.
I have had success by adding a PixelFormat property that can be set by a
constructor. Then I use that PixelFormat for the creation of the Thumbnail.
However, the issue I run into is that if I set the PixelFormat to
Format32bppArgb or Format32bppPrgb the transparency is preserved, but the
Gaussian or Unsharpmask filters no longer work (they create blank images).
Attached is the KalikoImage.cs library that allows the user to set the
PixelFormat. I would be very grateful if there were a way to get the filters to
perform with the Format32bppArgb pixelformat.
Original issue reported on code.google.com by onecleve...@gmail.com on 9 Aug 2011 at 5:55
Original issue reported on code.google.com by
onecleve...@gmail.com
on 9 Aug 2011 at 5:55Attachments: