|
AnimaEngine
1.0.0
Nintendo DS Pokemon Black, White, Black 2, and White 2 sprite extraction and preview toolchain
|
#include "ppm.h"Functions | |
| static void | WritePixel (FILE *f, const RgbaColor *px) |
| int | Ppm_WriteRgbImage (const char *path, const RgbaColor *pixels, int width, int height) |
| Exports an RGBA buffer to standard PPM format. More... | |
| int | Ppm_WriteRgbImageScaled (const char *path, const RgbaColor *pixels, int width, int height, int scale) |
| Exports an RGBA buffer scaled by an integer factor to standard PPM. More... | |
| int Ppm_WriteRgbImage | ( | const char * | path, |
| const RgbaColor * | pixels, | ||
| int | width, | ||
| int | height | ||
| ) |
Exports an RGBA buffer to standard PPM format.
| path | File path destination. |
| pixels | Source RGBA pixels. |
| width | Image width. |
| height | Image height. |
| int Ppm_WriteRgbImageScaled | ( | const char * | path, |
| const RgbaColor * | pixels, | ||
| int | width, | ||
| int | height, | ||
| int | scale | ||
| ) |
Exports an RGBA buffer scaled by an integer factor to standard PPM.
| path | File path destination. |
| pixels | Source RGBA pixels. |
| width | Canvas width before scaling. |
| height | Canvas height before scaling. |
| scale | Integer scaling multiplier. |
|
static |