![Citizen CL-E300 Programming Manual Download Page 67](http://html1.mh-extra.com/html/citizen/cl-e300/cl-e300_programming-manual_2610002067.webp)
CITIZEN Android Label Print SDK
—
Programming Manual
67
Description
Draws a 1D (one-dimensional) barcode with specifying options such as barcode type, rotation,
thick/narrow bar width, coordinates and human readable text.
* Supported thick/narrow bar ratio or data type depends on symbology. Refer to the command
reference for details.
Return value
Returns CLS_SUCCESS(0) on success, an error code otherwise. See "
" for the error
codes.
Example
// Code3of9
String code39 = "ABC123456789";
design.drawBarCode(code39, LabelConst.CLS_BCS_CODE39,
LabelConst.CLS_RT_NORMAL, 6, 2, 50, 10, 10,
LabelConst.CLS_BCS_TEXT_SHOW);
// UPC-A
String upca = "01234567890";
design.drawBarCode(upca, LabelConst.CLS_BCS_UPCA,
LabelConst.CLS_RT_NORMAL, 2, 2, 50, 10, 100,
LabelConst.CLS_BCS_TEXT_SHOW);
// UPC-E
String upce = "123456";
design.drawBarCode(upce, LabelConst.CLS_BCS_UPCE,
LabelConst.CLS_RT_NORMAL, 2, 2, 50, 10, 100,
LabelConst.CLS_BCS_TEXT_SHOW);
// Interleaved2of5
String interleaved25 = "1234567890";
design.drawBarCode(interleaved25, LabelConst.CLS_BCS_INTERLEAVED25,
LabelConst.CLS_RT_NORMAL, 5, 2, 50, 10, 100,
LabelConst.CLS_BCS_TEXT_SHOW);
// Code128
String code128 = "1234567890";
design.drawBarCode(code128, LabelConst.CLS_BCS_CODE128,
LabelConst.CLS_RT_NORMAL, 2, 4, 50, 10, 10,
LabelConst.CLS_BCS_TEXT_SHOW);
// EAN-13
String ean13 = "123456789012";
design.drawBarCode(ean13, LabelConst.CLS_BCS_EAN13,
LabelConst.CLS_RT_NORMAL, 3, 3, 50, 10, 100,
LabelConst.CLS_BCS_TEXT_SHOW);
// EAN-8
String ean8 = "1234567";
design.drawBarCode(ean8, LabelConst.CLS_BCS_EAN8,
LabelConst.CLS_RT_NORMAL, 4, 4, 50, 10, 10,
LabelConst.CLS_BCS_TEXT_SHOW);