110,533
社区成员
发帖
与我相关
我的任务
分享
private Bitmap ZoomPicture(Bitmap bmp, int newWidth, int newHight)
{
Bitmap b = new Bitmap(newWidth, newHight, System.Drawing.Imaging.PixelFormat.Format16bppRgb565);
Graphics g = this.CreateGraphics();
g.DrawImage(bmp, new Rectangle(0, 0, newWidth, newHight), new Rectangle(0, 0, bmp.Width, bmp.Height), GraphicsUnit.Pixel);
g.Dispose();
return b;
}