Thank you For your answer.
I used this way, But,I made DataMatrix barcodes with different the picture.
I used code
DataMatrixWriter dataMatrixWriter = new DataMatrixWriter();
//char FNC1 = 0xe8; // ASCII 232
char FNC1 = 0x1d; // ASCII 29
//String contents = FNC1 + "01088012345600161719123110A123";
String contents = FNC1 + "01" + "0" + "8801234560016" + "17" + "191231" + "10A123";
BarcodeFormat format = BarcodeFormat.DATA_MATRIX;
int width = 20;
int height = 20;
Map<EncodeHintType, Object> hints = new EnumMap<EncodeHintType, Object>(EncodeHintType.class);
hints.put(EncodeHintType.CHARACTER_SET, "ASCII");
BitMatrix bitMatrix = dataMatrixWriter.encode(contents, format, width, height, hints);
MatrixToImageWriter.writeToStream(bitMatrix, "png", new FileOutputStream(new File("img/img.png")));
How do I GS1-type of encoding is?
How do I use FNC?
2015년 11월 2일 월요일 오후 6시 56분 34초 UTC+9, Lachezar Dobrev 님의 말: