mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 13:04:05 -08:00
Merge pull request #176 from antimony/master
Use ARGB color model in MatrixToImageConfig
This commit is contained in:
commit
17da7bbe4c
|
@ -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