如何将具有不同PixelFormat的位图转换为PixelFormat.Format32bppArgb格式?
答案 0 :(得分:4)
尝试使用下一个
var bmp = new Bitmap(yourImage.Width, yourImage.Height, System.Drawing.Imaging.PixelFormat.Format16bppRgb555);
using (var gr = Graphics.FromImage(bmp))
gr.DrawImage(yourImage, new Rectangle(0, 0, yourImage.Width, yourImage.Height));
bmp - 将具有16位质量。将PixelFormat
指定为您想要的内容