I have a problem with image scaling in .NET. I use the standard Graphics type to resize images like in this example:
public static Image Scale(Image sourceIm
None of these worked for me.
However, changing the format from
System.Drawing.Imaging.PixelFormat.Format24bppRgb
to
System.Drawing.Imaging.PixelFormat.Format32bppArgb
did solve the problem
using (System.Drawing.Bitmap newImage = new System.Drawing.Bitmap(newWidth, newHeight,
// System.Drawing.Imaging.PixelFormat.Format24bppRgb // OMG bug
System.Drawing.Imaging.PixelFormat.Format32bppArgb
))
{