vb.net 修改图片大小

前端之家收集整理的这篇文章主要介绍了vb.net 修改图片大小前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Dim cmicImg As System.Drawing.Image
Dim mWidth,mHeight As Integer
cmicImg = System.Drawing.Image.FromFile("c:\temp.bmp ") '读入图片
'变化大小
'mWidth = CInt(cmicImg.Width / 2)
'mHeight = CInt(cmicImg.Height / 2)

mWidth = CInt(384) mHeight = CInt(512) '存图片 Dim cmicImgSave As New System.Drawing.Bitmap(cmicImg,mWidth,mHeight) cmicImgSave.Save("c:\k.bmp ")

原文链接:https://www.f2er.com/vb/260603.html

猜你在找的VB相关文章