Esempio n. 1
0
 public MyBitmap(Image image, String path)
 {
     this.preBitmap  = convertTo24bpp(image);
     this.curBitmap  = convertTo24bpp(image);
     this.byteArray  = toByteArray(curBitmap, ImageFormat.Bmp);
     this.bitmapInfo = new MyBitmapInfo(image, byteArray[10], byteArray[28], path);
     this.pixelArray = convertArray(this.byteArray, image.Width, image.Height);
     //bitmap.Dispose();
 }
Esempio n. 2
0
 public MyBitmap(Image image, String path)
 {
     this.preBitmap = convertTo24bpp(image);
     this.curBitmap = convertTo24bpp(image);
     this.byteArray = toByteArray(curBitmap, ImageFormat.Bmp);
     this.bitmapInfo = new MyBitmapInfo(image,byteArray[10],byteArray[28],path);
     this.pixelArray = convertArray(this.byteArray, image.Width, image.Height);
     //bitmap.Dispose();
 }