C#代码,用于在Windows Mobile App中保存图片框控件上的缩放图像

时间:2010-03-05 11:07:57

标签: c# windows-mobile

我从Windows移动相机中捕获图像并将其保存 图片框控制..如何缩放图片我正在增加 它的大小由Onpaint事件。图像变焦但是 我无法保存缩放图像(即..,增加 图像大小)...

请告诉我

1 个答案:

答案 0 :(得分:0)

据推测,PictureBox中有一个Bitmap?如果是这样,那么这样做:

Bitmap bmp = (Bitmap)myPictureBox.Image;
bmp.Save("\My Documents\My Pictures\image.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
相关问题