AmaroK86.ImageFormat.DDSImage.MipMap.MipMap C# (CSharp) Метод

MipMap() публичный Метод

public MipMap ( byte data, DDSFormat format, int w, int h ) : System
data byte
format DDSFormat
w int
h int
Результат System
            public MipMap(byte[] data, DDSFormat format, int w, int h)
            {
                long requiredSize = (long)(w * h * getBytesPerPixel(format));
                if (data.Length != requiredSize)
                    throw new InvalidDataException("Data size is not valid for selected format.\nActual: " + data.Length + " bytes\nRequired: " + requiredSize + " bytes");

                this.data = data;
                ddsFormat = format;
                width = w;
                height = h;
            }
        }
DDSImage.MipMap