开发者

C# code to save the zoomed image on picturebox control in windows mobile App

开发者 https://www.devze.com 2022-12-21 21:00 出处:网络
I capture a image from windows mobile camera and save it on picturebox control..now to zoom the picture i am increasing

I capture a image from windows mobile camera and save it on picturebox control..now to zoom the picture i am increasing its size by Onpaint event.The image is getting zoomed but i am not able to save the zoomed image(ie.., the increased image size)...

Pl开发者_开发百科ease let me know


Presumably you have a Bitmap being displayed in the PictureBox? If so, then do this:

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

精彩评论

暂无评论...
验证码 换一张
取 消