AnimaEngine  1.0.0
Nintendo DS Pokemon Black, White, Black 2, and White 2 sprite extraction and preview toolchain
png_writer.h
Go to the documentation of this file.
1 
6 #ifndef PNG_WRITER_H
7 #define PNG_WRITER_H
8 
9 #include "common.h"
10 #include "ppm.h"
11 
21  const char *path,
22  const RgbaColor *pixels,
23  int width,
24  int height
25 );
26 
37  const char *path,
38  const RgbaColor *pixels,
39  int width,
40  int height,
41  int scale
42 );
43 
44 #endif
45 
Common types, macros, and standard library includes used throughout AnimaEngine.
int Png_WriteRgbaImageScaled(const char *path, const RgbaColor *pixels, int width, int height, int scale)
Writes an RGBA pixel buffer scaled by a scaling factor to a PNG.
Definition: png_writer.c:29
int Png_WriteRgbaImage(const char *path, const RgbaColor *pixels, int width, int height)
Writes an RGBA pixel buffer to a standard PNG file.
Definition: png_writer.c:19
Portable Pixmap (PPM) format writer utilities and color structures.
32-bit RGBA color representation struct.
Definition: ppm.h:14