zzxap

c# 获取图像 宽度 高度 位深度

Image imgPhoto = Image.FromFile(TempPath + obj);
                    float maxsize = imgPhoto.Height * imgPhoto.Width * Image.GetPixelFormatSize(imgPhoto.PixelFormat) / 1024 / 1024; //长(像素) x 宽(像素) x 颜色深度 / 1024 /1024

                    if (maxsize > 4) //图片太大
                    {
                        publicOperation.setShowBoxStyle(SetLanguage.getValues("FileSizeError", "frmPlayList_Message"));
                        return;
                    }

分类:

技术点:

相关文章:

  • 2022-02-18
  • 2021-11-18
  • 2022-12-23
  • 2022-01-08
  • 2021-11-14
  • 2021-09-21
  • 2021-09-19
  • 2022-01-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案