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(); }
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(); }