libnds
|
An image abstraction for working with image data. More...
Data Structures | |
struct | RGB_24 |
holds a red green blue triplet More... | |
struct | sImage |
A generic image structure. More... | |
Typedefs | |
typedef struct RGB_24 | RGB_24 |
holds a red green blue triplet | |
typedef struct sImage | sImage |
A generic image structure. | |
Functions | |
void | image24to16 (sImage *img) |
Destructively converts a 24-bit image to 16-bit. More... | |
void | image8to16 (sImage *img) |
Destructively converts an 8-bit image to 16 bit setting the alpha bit. More... | |
void | image8to16trans (sImage *img, u8 transparentColor) |
Destructively converts an 8-bit image to 16-bit with alpha bit cleared for the supplied palette index. More... | |
void | imageDestroy (sImage *img) |
frees the image data. Only call if the image data was returned from an image loader More... | |
void | imageTileData (sImage *img) |
Tiles 8-bit image data into a sequence of 8x8 tiles. More... | |
An image abstraction for working with image data.
void image24to16 | ( | sImage * | img | ) |
Destructively converts a 24-bit image to 16-bit.
img | a pointer to image to manipulate |
void image8to16 | ( | sImage * | img | ) |
Destructively converts an 8-bit image to 16 bit setting the alpha bit.
img | a pointer to image to manipulate |
Destructively converts an 8-bit image to 16-bit with alpha bit cleared for the supplied palette index.
img | a pointer to image to manipulate |
transparentColor | Color indexes equal to this value will have the alpha bit clear |
void imageDestroy | ( | sImage * | img | ) |
frees the image data. Only call if the image data was returned from an image loader
img | a pointer to image to manipulate (the image data will be free() ) |
void imageTileData | ( | sImage * | img | ) |
Tiles 8-bit image data into a sequence of 8x8 tiles.
img | a pointer to image to manipulate |