메소드 | 설명 | |
---|---|---|
CalculateChecksumDigitModulo10 ( String contents ) : String |
Calculates the checksum digit modulo10.
|
|
encode ( String contents, BarcodeFormat format, int width, int height ) : |
Encode a barcode using the default settings.
|
|
encode ( String contents, BarcodeFormat format, int width, int height, object>.IDictionary |
Encode the contents following specified format. {@code width} and {@code height} are required size. This method may return bigger size {@code BitMatrix} when specified size is too small. The user can set both {@code width} and {@code height} to zero to get minimum size barcode. If negative value is set to {@code width} or {@code height}, {@code IllegalArgumentException} is thrown.
|
|
encode ( String contents ) : bool[] |
Encode the contents to bool array expression of one-dimensional barcode. Start code and end code should be included in result, and side margins should not be included.
|
메소드 | 설명 | |
---|---|---|
appendPattern ( bool target, int pos, int pattern, bool startColor ) : int |
Appends the given pattern to the target array starting at pos.
|
메소드 | 설명 | |
---|---|---|
renderResult ( bool code, int width, int height, int sidesMargin ) : |
|
public static CalculateChecksumDigitModulo10 ( String contents ) : String | ||
contents | String | The contents. |
리턴 | String |
protected static appendPattern ( bool target, int pos, int pattern, bool startColor ) : int | ||
target | bool | encode black/white pattern into this array |
pos | int | position to start encoding at in |
pattern | int | lengths of black/white runs to encode |
startColor | bool | starting color - false for white, true for black |
리턴 | int |
public encode ( String contents, BarcodeFormat format, int width, int height ) : |
||
contents | String | The contents to encode in the barcode |
format | BarcodeFormat | The barcode format to generate |
width | int | The preferred width in pixels |
height | int | The preferred height in pixels |
리턴 |
public encode ( String contents, BarcodeFormat format, int width, int height, object>.IDictionary |
||
contents | String | |
format | BarcodeFormat | |
width | int | |
height | int | |
hints | object>.IDictionary | |
리턴 |
public abstract encode ( String contents ) : bool[] | ||
contents | String | barcode contents to encode |
리턴 | bool[] |