Esempio n. 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)];
 }
Esempio n. 2
0
File: BMP.cs Progetto: 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)];
 }