![]()
马虎,对于GDI +并不罕见。可以解决此问题:
Bitmap orig = new Bitmap(@"c:temp24bpp.bmp");Bitmap clone = new Bitmap(orig.Width, orig.Height, System.Drawing.Imaging.PixelFormat.Format32bppPArgb);using (Graphics gr = Graphics.FromImage(clone)) { gr.DrawImage(orig, new Rectangle(0, 0, clone.Width, clone.Height));}// Dispose orig as necessary...欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)