Use ARGB color model in MatrixToImageConfig

This commit is contained in:
Mikhail Surin 2014-06-24 14:16:11 +04:00
parent 40b48a9163
commit af455fe963

View file

@ -56,7 +56,7 @@ public final class MatrixToImageConfig {
int getBufferedImageColorModel() {
// Use faster BINARY if colors match default
return onColor == BLACK && offColor == WHITE ? BufferedImage.TYPE_BYTE_BINARY : BufferedImage.TYPE_INT_RGB;
return onColor == BLACK && offColor == WHITE ? BufferedImage.TYPE_BYTE_BINARY : BufferedImage.TYPE_INT_ARGB;
}
}
}