Skip to content

Commit

Permalink
GH-314 debugging masks
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Corless committed Jan 20, 2024
1 parent d4a25d0 commit a4899aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ private static ImageStream burnImage(ImageStream imageStream, BufferedImage imag
imageStream.getLibrary().getStateManager().addChange(new PObject(imageStream,
imageStream.getPObjectReference()));
}
ImageUtility.displayImage(imageStream.getDecodedImage(),
imageStream.getPObjectReference().toString() + image.getWidth() +
" " + "x" + image.getHeight());
return imageStream;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ public ImageStream encode() throws IOException {
if (isGrayScaleImage(imageStream)) {
byteArray = createFromGrayScaleImage(imageStream);
} else {
// may need to look at the mask value, if arrray we have ColorKeyMask and are rgba?
// BufferedImage image = imageStream.getDecodedImage();
// ImageUtility.displayImage(imageStream.getDecodedImage(),
// imageStream.getPObjectReference().toString() + image.getWidth() +
// " " + "x" + image.getHeight());
byteArray = createFromRGBImage(imageStream);
}
byte[] outputData = createFlateEncodedBytes(byteArray);
Expand Down

0 comments on commit a4899aa

Please sign in to comment.