AmaroK86.ImageFormat.ImageFile.ImageDataSize C# (CSharp) Метод

ImageDataSize() публичный статический Метод

public static ImageDataSize ( ImageSize imgsize, string format, float BytesPerPixel ) : long
imgsize ImageSize
format string
BytesPerPixel float
Результат long
        public static long ImageDataSize(ImageSize imgsize, string format, float BytesPerPixel)
        {
            uint w = imgsize.width;
            uint h = imgsize.height;
            if (CprFormat(format))
            {
                if (w < 4)
                    w = 4;
                if (h < 4)
                    h = 4;
            }
            return (long)(w * h * BytesPerPixel);
        }