Re: Resizing Image

Tech-Archive recommends: Fix windows errors by optimizing your registry



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.


.



Relevant Pages

  • Re: How to create an 128x128 transparent image
    ... I want to create a transparent 128x128 PNG image and then resize the ... in that case I think it would be better to resize the JPEG and use CSS ... wraps the div that contains the image. ...
    (comp.lang.php)
  • Re: How to create an 128x128 transparent image
    ... I want to create a transparent 128x128 PNG image and then resize the ... in that case I think it would be better to resize the JPEG and use CSS ... wraps the div that contains the image. ...
    (comp.lang.php)
  • Re: How to create an 128x128 transparent image
    ... I want to create a transparent 128x128 PNG image and then resize the ... in that case I think it would be better to resize the JPEG and use CSS ... wraps the div that contains the image. ...
    (comp.lang.php)
  • Re: after resizing Canvas, how to draw on the new part of the image?
    ... I'm probably overlooking something simple here, but if I resize the ... canvas, I get a new piece of image. ... This is transparent, that is ok. ... Duplicate the resized layer ...
    (comp.graphics.apps.gimp)