Pink 0.9
|
This file holds the basic image allocation functions. More...
Functions | |
struct xvimage * | allocimage (char *name, index_t rs, index_t cs, index_t ds, int32_t t) |
Allocates an image object with the given size and type. | |
void | razimage (struct xvimage *f) |
fills the image with zeros description Sets every pixel of the image to binary zero. | |
void | freeimage (struct xvimage *image) |
Frees an image object. | |
void | writeimage (struct xvimage *image, char *filename) |
Writes an image to disk. | |
struct xvimage * | readimage (const char *filename) |
Reads an image from a file. |
This file holds the basic image allocation functions.
Pink
struct xvimage* allocimage | ( | char * | name, |
index_t | rs, | ||
index_t | cs, | ||
index_t | ds, | ||
int32_t | t | ||
) | [read] |
Allocates an image object with the given size and type.
name | Not used |
rs | x-size |
cs | y-size |
ds | z-size |
t | t-size |
void freeimage | ( | struct xvimage * | image | ) |
Frees an image object.
image | The pointer to the image |
Referenced by pink::ujoi< pixel_type_ >::ujoi().
void razimage | ( | struct xvimage * | f | ) |
fills the image with zeros description Sets every pixel of the image to binary zero.
f | the input image |
struct xvimage* readimage | ( | const char * | filename | ) | [read] |
Reads an image from a file.
filename | The name of the image file. |
Referenced by pink::ujoi< pixel_type_ >::ujoi().
void writeimage | ( | struct xvimage * | image, |
char * | filename | ||
) |
Writes an image to disk.
image | The pointer to the image |
filename | The file to write the image at. |
Referenced by pink::ujoi< pixel_type_ >::ujoi().