Issue #375 Replacing DefineBitLossless images bug

This commit is contained in:
Jindra Petk
2013-09-10 19:36:41 +02:00
parent 17a5e75f1a
commit ed54930ddb

View File

@@ -58,6 +58,7 @@ public class DefineBitsLosslessTag extends ImageTag implements AloneTag {
bitmapFormat = FORMAT_24BIT_RGB;
bitmapWidth = image.getWidth();
bitmapHeight = image.getHeight();
bitmapData = new BITMAPDATA();
bitmapData.bitmapPixelDataPix24 = new PIX24[bitmapWidth * bitmapHeight];
int pos = 0;
for (int y = 0; y < bitmapHeight; y++) {