i have a png file, or gif if that makes any difference which i am redrawing using GDI+.
Bitmap b6 = new Bitmap(525, 525, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
b6.SetResolution(300, 300);
using (Graphics grPhoto = Graphics.FromImage(b6))
{
grPhoto.CompositingMode = CompositingMode.SourceCopy;
grPhoto.SmoothingMode = SmoothingMode.HighQuality;
grPhoto.InterpolationMode = InterpolationMode.HighQualityBicubic;
grPhoto.PixelOffsetMode = PixelOffsetMode.HighQuality;
grPhoto.CompositingQuality = CompositingQuality.HighQuality;
//now do the crop
grPhoto.DrawImage(loadedImage1, imageBounds1.Location.X, imageBounds1.Location.Y);
}
The original image is transparent, but when i re draw, the background is black.. any fix for this?
The image has transparency inside the picturebox initally.