mirror of
https://github.com/zxing/zxing.git
synced 2024-11-09 20:44:03 -08:00
Use ARGB color model in MatrixToImageConfig
This commit is contained in:
parent
40b48a9163
commit
af455fe963
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue