如何在不同像素格式之间进行转换?

3
1个回答

4

尝试使用next

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));
将具有16位质量。请指定您想要的PixelFormat

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接