我阅读在一个图像(jpg)使用下面的代码,我需要检查图像不超过150像素和150像素小于25 k,我该怎么办呢?
PictureBox2.Image = Image.FromFile(.FileName)
我阅读在一个图像(jpg)使用下面的代码,我需要检查图像不超过150像素和150像素小于25 k,我该怎么办呢?
PictureBox2.Image = Image.FromFile(.FileName)
If New FileInfo(.FileName).Length > 25 * 1024 Then ... More than 25KB
Dim img = Image.FromFile(.FileName)
If img.Size.Width > 150 OrElse img.Size.Height > 150 Then ... More than 150x150
Picturebox1.Image = img