Does VintaSoft Imaging support png files with transparent backgrounds? I have an older version and it load the file just fine but after a resize the background is black. Do I need to handle this in code or do I need a newer version?
Re: Support for transparent background in .png format image
Irfan replaces the transparent color to the white color before image saving. And I think Irfan uses white color because white color is specified as the background color in Irfan settings.
For solving your task you need to do the following steps:
Replace the transparent color to the necessary color (for example, white color) in PNG image. This can be done using the Vintasoft.Imaging.ImageProcessing.Color.ReplaceColorCommand class: https://www.vintasoft.com/docs/vsimagin ... mmand.html
Save processed PNG image to a JPEG file.
Best regards, Alexander
Re: Support for transparent background in .png format image
Also for solving your task you can create a temporary empty image, fill temporary image with white color, draw PNG image on temporary image and save temporary image in JPEG file.