FECipherVit.ImageHelper.GetImageSize C# (CSharp) Method

GetImageSize() public static method

根据百分比获取图片的尺寸
public static GetImageSize ( Image picture, int percent ) : Size
picture Image
percent int
return System.Drawing.Size
        public static Size GetImageSize(Image picture, int percent)
        {
            if (picture == null || percent < 1)
                return Size.Empty;

            int width = picture.Width * percent / 100;
            int height = picture.Height * percent / 100;

            return GetImageSize(picture, width, height);
        }

Same methods

ImageHelper::GetImageSize ( Image picture, int width, int height ) : Size