19 SDL_Surface *
LoadPNG(
const char *file);
28 bool SavePNG(SDL_Texture *texture, SDL_Renderer *renderer,
const char *filename);
39 bool SaveRawBytes(
const char *filename,
const void *buffer,
size_t w,
size_t h,
size_t bpp);
48 bool SavePNG_RGBA(
const char *filename,
void *buffer,
int w,
int h);
58 bool SavePNG_RGBA16(
const char *filename,
const void *buffer,
int w,
int h);
Utilities for loading and saving PNG images.
bool SavePNG(SDL_Texture *texture, SDL_Renderer *renderer, const char *filename)
Save an SDL_Texture to a PNG file.
bool SavePNG_RGBA16(const char *filename, const void *buffer, int w, int h)
Save a raw 16-bit RGBA pixel buffer to a PNG file.
SDL_Surface * LoadPNG(const char *file)
Load a PNG file into an SDL_Surface.
bool SavePNG_RGBA(const char *filename, void *buffer, int w, int h)
Save a raw RGBA pixel buffer to a PNG file.
bool SaveRawBytes(const char *filename, const void *buffer, size_t w, size_t h, size_t bpp)
Save raw data to a file.