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