Go to the source code of this file.
Classes |
struct | img_tag |
struct | img_object |
Defines |
#define | IMG_ARGUMENT 0x0001 |
#define | IMG_ALLOC 0x0002 |
#define | IMG_OPEN 0x0004 |
#define | IMG_READ 0x0008 |
#define | IMG_FORMAT 0x0010 |
#define | IMG_FIELD 0x0020 |
#define | img_pixel(img, x, y) (((img)->image) [((img)->size) [1] * (int) (x) + (int) (y)]) |
#define | img_columns(img) ((img)->size [0]) |
#define | img_rows(img) ((img)->size [1]) |
Typedefs |
typedef img_object * | img_handle |
Functions |
img_handle | img_make_handle () |
int | img_read (img_handle img, const char *name) |
int | img_free_handle (img_handle img) |
int | img_delete_field (img_handle img, const char *tag) |
const char * | img_get_field (img_handle img, const char *tag) |
int | img_set_field (img_handle img, const char *tag, const char *data) |
double | img_get_number (img_handle img, const char *tag) |
int | img_set_number (img_handle img, const char *tag, const char *format, double data) |
int | img_get_pixel (img_handle img, int x, int y) |
int | img_set_pixel (img_handle img, int x, int y, int data) |
int | img_set_dimensions (img_handle img, int columns, int rows) |
int | img_get_dimension (img_handle img, int dimension) |
Define Documentation
Definition at line 14 of file img.h.
#define IMG_ARGUMENT 0x0001 |
Definition at line 13 of file img.h.
#define img_columns |
( |
|
img | ) |
((img)->size [0]) |
Definition at line 47 of file img.h.
Definition at line 18 of file img.h.
#define IMG_FORMAT 0x0010 |
Definition at line 17 of file img.h.
Definition at line 15 of file img.h.
#define img_pixel |
( |
|
img, |
|
|
|
x, |
|
|
|
y |
|
) |
| (((img)->image) [((img)->size) [1] * (int) (x) + (int) (y)]) |
Definition at line 46 of file img.h.
Definition at line 16 of file img.h.
#define img_rows |
( |
|
img | ) |
((img)->size [1]) |
Definition at line 48 of file img.h.
Typedef Documentation
Definition at line 42 of file img.h.
Function Documentation
int img_delete_field |
( |
img_handle |
img, |
|
|
const char * |
tag |
|
) |
| |
int img_get_dimension |
( |
img_handle |
img, |
|
|
int |
dimension |
|
) |
| |
const char* img_get_field |
( |
img_handle |
img, |
|
|
const char * |
tag |
|
) |
| |
double img_get_number |
( |
img_handle |
img, |
|
|
const char * |
tag |
|
) |
| |
int img_get_pixel |
( |
img_handle |
img, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
int img_read |
( |
img_handle |
img, |
|
|
const char * |
name |
|
) |
| |
int img_set_dimensions |
( |
img_handle |
img, |
|
|
int |
columns, |
|
|
int |
rows |
|
) |
| |
int img_set_field |
( |
img_handle |
img, |
|
|
const char * |
tag, |
|
|
const char * |
data |
|
) |
| |
int img_set_number |
( |
img_handle |
img, |
|
|
const char * |
tag, |
|
|
const char * |
format, |
|
|
double |
data |
|
) |
| |
int img_set_pixel |
( |
img_handle |
img, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
data |
|
) |
| |