Top |
Description
This section describes a simple API to select and create glBarcode structures using a built-in barcode backend.
Functions
lgl_barcode_create ()
lglBarcode * lgl_barcode_create (lglBarcodeType type
,gboolean text_flag
,gboolean checksum_flag
,gdouble w
,gdouble h
,const gchar *data
);
Create a new barcode structure, encoding data
with selected barcode type and
characteristics.
Barcode dimensions (w
and h
) are in points ( 1 point = 1/72 inch ).
If either w
or h
are zero, the barcode will be rendered in a nominal size
appropriate for the barcode type and data. The actual size of the resulting
barcode may also be limited by required tolerances of line sizes and spacing
for the given barcode type.
Parameters
type |
Barcode type selection (lglBarcodeType) |
|
text_flag |
|
|
checksum_flag |
|
|
w |
Suggested width of barcode |
|
h |
Suggested height of barcode |
|
data |
Data to encode into barcode |