Files

18 lines
540 B
C

/*
* TinyBlocks - tb_png.h
* Library tinyblocks-png: carrega/grava PNG (dependencia de terceiros: libpng)
* como TinyBlocks_Image (TB_VALUE_IMAGE, RGBA).
*/
#ifndef TINYBLOCKS_PNG_H
#define TINYBLOCKS_PNG_H
#include <tinyblocks/tinyblocks.h>
TB_API const TinyBlocks_LibraryDescriptor* tb_png_get_library(void);
TB_API TinyBlocks_Image* tb_png_load(const char* path);
TB_API bool tb_png_save(const TinyBlocks_Image* img, const char* path);
TB_API const char* tb_png_last_error(void);
#endif /* TINYBLOCKS_PNG_H */