|
mupdf
|
#include "mupdf/fitz/system.h"#include "mupdf/fitz/context.h"#include "mupdf/fitz/geometry.h"#include "mupdf/fitz/image.h"#include "mupdf/fitz/document.h"#include "mupdf/fitz/display-list.h"

Go to the source code of this file.
Functions | |
| const char * | fz_string_from_barcode_type (fz_barcode_type type) |
| fz_barcode_type | fz_barcode_type_from_string (const char *str) |
| fz_image * | fz_new_barcode_image (fz_context *ctx, fz_barcode_type type, const char *value, int size, int ec_level, int quiet, int hrt) |
| fz_pixmap * | fz_new_barcode_pixmap (fz_context *ctx, fz_barcode_type type, const char *value, int size, int ec_level, int quiet, int hrt) |
| char * | fz_decode_barcode_from_page (fz_context *ctx, fz_barcode_type *type, fz_page *page, fz_rect subarea, int rotate) |
| char * | fz_decode_barcode_from_pixmap (fz_context *ctx, fz_barcode_type *type, fz_pixmap *pix, int rotate) |
| char * | fz_decode_barcode_from_display_list (fz_context *ctx, fz_barcode_type *type, fz_display_list *list, fz_rect subarea, int rotate) |
| enum fz_barcode_type |
| fz_barcode_type fz_barcode_type_from_string | ( | const char * | str | ) |
Helper function to search the above list (case insensitively) for an exact match. Returns FZ_BARCODE_NONE if no match found.
| char * fz_decode_barcode_from_display_list | ( | fz_context * | ctx, |
| fz_barcode_type * | type, | ||
| fz_display_list * | list, | ||
| fz_rect | subarea, | ||
| int | rotate ) |
Decode a barcode from a display list.
type: NULL, or a pointer to receive the barcode type decoded. list: The display list to render to get the barcode. subarea: subarea of the page to decode. rotate: 0, 90, 180, or 270.
returns the decoded value.
| char * fz_decode_barcode_from_page | ( | fz_context * | ctx, |
| fz_barcode_type * | type, | ||
| fz_page * | page, | ||
| fz_rect | subarea, | ||
| int | rotate ) |
Decode a barcode from a page.
type: NULL, or a pointer to receive the barcode type decoded. page: The page to decode. subarea: subarea of the page to decode. rotate: 0, 90, 180, or 270.
returns the decoded value.
| char * fz_decode_barcode_from_pixmap | ( | fz_context * | ctx, |
| fz_barcode_type * | type, | ||
| fz_pixmap * | pix, | ||
| int | rotate ) |
Decode a barcode from a pixmap.
type: NULL, or a pointer to receive the barcode type decoded. pix: The pixmap to decode. rotate: 0, 90, 180, or 270.
returns the decoded value as an fz_malloced block. Should be fz_free'd by the caller.
| fz_image * fz_new_barcode_image | ( | fz_context * | ctx, |
| fz_barcode_type | type, | ||
| const char * | value, | ||
| int | size, | ||
| int | ec_level, | ||
| int | quiet, | ||
| int | hrt ) |
Create an fz_image from a barcode definition.
type: The type of barcode to create. value: The value of the barcode. size: The size of the barcode. ec_level: error correction level 0-8. quiet: whether to include quiet zones (0 or 1). hrt: whether to include human readable text below the barcode (0 or 1).
returns a created fz_image.
| fz_pixmap * fz_new_barcode_pixmap | ( | fz_context * | ctx, |
| fz_barcode_type | type, | ||
| const char * | value, | ||
| int | size, | ||
| int | ec_level, | ||
| int | quiet, | ||
| int | hrt ) |
Create an fz_pixmap from a barcode definition.
type: The type of barcode to create. value: The value of the barcode. size: The size of the barcode. ec_level: error correction level 0-8. quiet: whether to include quiet zones (0 or 1). hrt: whether to include human readable text below the barcode (0 or 1).
returns a created fz_pixmap.
| const char * fz_string_from_barcode_type | ( | fz_barcode_type | type | ) |
Return barcode string matching one of the above barcode types. All lowercase, e.g. "none", "aztec" etc.