标签: c# image bitmap resize
我有一张图片,我想改变宽度和宽度。所述图像的高度。
(例如Width = 200 Height = 120,我想将其更改为Width = 30 Height = 50)
Width = 200 Height = 120
Width = 30 Height = 50
最好的方法是什么?
答案 0 :(得分:3)
Bitmap original = (Bitmap)Image.FromFile("DSC_0002.jpg"); Bitmap resized = new Bitmap(original,new Size(newWidth,newHeight));