Package com.google.zxing.client.j2se
Class MatrixToImageConfig
java.lang.Object
com.google.zxing.client.j2se.MatrixToImageConfig
public final class MatrixToImageConfig extends Object
Encapsulates custom configuration used in methods of
MatrixToImageWriter
.-
Field Summary
-
Constructor Summary
Constructors Constructor Description MatrixToImageConfig()
MatrixToImageConfig(int onColor, int offColor)
-
Method Summary
Modifier and Type Method Description (package private) int
getBufferedImageColorModel()
int
getPixelOffColor()
int
getPixelOnColor()
-
Field Details
-
BLACK
public static final int BLACK- See Also:
- Constant Field Values
-
WHITE
public static final int WHITE- See Also:
- Constant Field Values
-
-
Constructor Details
-
MatrixToImageConfig
public MatrixToImageConfig() -
MatrixToImageConfig
public MatrixToImageConfig(int onColor, int offColor)- Parameters:
onColor
- pixel on color, specified as an ARGB value as an intoffColor
- pixel off color, specified as an ARGB value as an int
-
-
Method Details
-
getPixelOnColor
public int getPixelOnColor() -
getPixelOffColor
public int getPixelOffColor() -
getBufferedImageColorModel
int getBufferedImageColorModel()
-