ami*_*mir 2 c# resize image bitmap
我有一个图像,我想更改所述图像的宽度和高度。
(例如Width = 200 Height = 120,我想将其更改为Width = 30 Height = 50)
Width = 200 Height = 120
Width = 30 Height = 50
这样做的最佳方法是什么?
小智 5
Bitmap original = (Bitmap)Image.FromFile("DSC_0002.jpg"); Bitmap resized = new Bitmap(original,new Size(newWidth,newHeight));
归档时间:
9 年,4 月 前
查看次数:
4283 次
最近记录: