Re: Resizing Image
- From: "Michael Phillips, Jr." <mphillips53@xxxxxxxxxxxxxxx>
- Date: Sun, 16 Mar 2008 16:51:10 -0400
I'm facing difficulties in resizing transparent gif and transparent png-24
images using System.Drawing classes.
I built a class to get an image and resize it. For quality saving issues,
I
don't want just to save the image with new sizes or use GetImageThumbnail
method.
Therefor, I 'draw' the image to a new graphic object.
Any way I use trying to save transperacy, not working and I get the image
with black background.
I try using makeTransparent to the Bitmap object instance, also clear to
the
graphic object and nothing helps.
For a gif the encoder needs to know which color in the palette is
transparent.
Use the following method to save the resized gif with its palette and choice
of transparent color:
http://support.microsoft.com/kb/315780
Gdiplus does not support 24bpp png images with transparency. Save your
image as 32bpp or use the free libpng library.
.
- Prev by Date: Re: EncoderTransformation ignored, no errors produced.
- Next by Date: Quartz Debug for Windows?
- Previous by thread: Overlay Window on Vista
- Next by thread: Quartz Debug for Windows?
- Index(es):
Relevant Pages
|