LibGlbarcode 3.0 Reference Manual | ||||
---|---|---|---|---|
Top | Description |
#include <libglbarcode/lgl-barcode-create.h> lglBarcode * lgl_barcode_create (lglBarcodeType type
,gboolean text_flag
,gboolean checksum_flag
,gdouble w
,gdouble h
,const gchar *data
);
This section describes a simple API to select and create glBarcode structures using a built-in barcode backend.
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.
|
Barcode type selection (lglBarcodeType) |
|
TRUE to show text, if supported by barcode type |
|
TRUE to include checksum, if supported or optional for barcode type |
|
Suggested width of barcode |
|
Suggested height of barcode |
|
Data to encode into barcode |
Returns : |
A newly allocated lglBarcode structure. Use lgl_barcode_free() to
free it. |