mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
minSize from provided sizes
create minSize Dimension from provided width and height
This commit is contained in:
parent
ce1fbe1b76
commit
ea00f5a51c
|
@ -60,7 +60,7 @@ public final class DataMatrixWriter implements Writer {
|
|||
|
||||
// Try to get force shape & min / max size
|
||||
SymbolShapeHint shape = SymbolShapeHint.FORCE_NONE;
|
||||
Dimension minSize = null;
|
||||
Dimension minSize = new Dimension(width, height);
|
||||
Dimension maxSize = null;
|
||||
if (hints != null) {
|
||||
SymbolShapeHint requestedShape = (SymbolShapeHint) hints.get(EncodeHintType.DATA_MATRIX_SHAPE);
|
||||
|
|
Loading…
Reference in a new issue