Пример #1
0
 public BMP(uint width, int height, uint bitPerPixel = 24)
 {
     fileHeader = new BITMAPFILEHEADER(pixelArraySize(width, height, bitPerPixel));
     infoHeader = new BITMAPINFOHEADER((int)width, height, bitPerPixel);
     pixels     = new BGR[width * Math.Abs(height)];
 }
Пример #2
0
Файл: BMP.cs Проект: jonanh/dxtc
 public BMP(uint width, int height, uint bitPerPixel = 24)
 {
     fileHeader = new BITMAPFILEHEADER(pixelArraySize(width, height, bitPerPixel));
     infoHeader = new BITMAPINFOHEADER((int)width, height, bitPerPixel);
     pixels = new BGR[width * Math.Abs(height)];
 }