libgutenprint API Reference: include/gutenprint/array.h File Reference

libgutenprint API Reference 5.3.3

Typedefs | Functions
array.h File Reference

Array functions. More...

`#include <gutenprint/sequence.h>`

## Typedefs
typedef struct stp_array | stp_array_t
| The array opaque data type. More...

## Functions
stp_array_t * | stp_array_create (int x_size, int y_size)
| Create a new array. More...
void | stp_array_destroy (stp_array_t *array)
| Destroy an array. More...
void | stp_array_copy (stp_array_t *dest, const stp_array_t *source)
| Copy an array. More...
stp_array_t * | stp_array_create_copy (const stp_array_t *array)
| Copy and allocate an array. More...
void | stp_array_set_size (stp_array_t *array, int x_size, int y_size)
| Resize an array. More...
void | stp_array_get_size (const stp_array_t *array, int *x_size, int *y_size)
| Get the size of an array. More...
void | stp_array_set_data (stp_array_t *array, const double *data)
| Set the data in an array. More...
void | stp_array_get_data (const stp_array_t *array, size_t *size, const double **data)
| Get the data in an array. More...
int | stp_array_set_point (stp_array_t *array, int x, int y, double data)
| Set the data at a single point in the array. More...
int | stp_array_get_point (const stp_array_t *array, int x, int y, double *data)
| Get the data at a single point in the array. More...
const stp_sequence_t * | stp_array_get_sequence (const stp_array_t *array)
| Get the underlying stp_sequence_t. More...
int | stp_array_write (FILE *file, const stp_array_t *array)
| Write an array to a file. More...
char * | stp_array_write_string (const stp_array_t *array)
| Write an array to a string. More...
stp_array_t * | stp_array_create_from_stream (FILE *fp)
| Create an array from a stream. More...
stp_array_t * | stp_array_create_from_file (const char *file)
| Create an array from a stream. More...
stp_array_t * | stp_array_create_from_string (const char *string)
| Create an array from a string. More...

## Detailed Description

Array functions.