Adiciona tinyblocks-bmp e tinyblocks-png (libpng)

This commit is contained in:
mguinhos committed 2026-10-20 21:05:47 -03:00
1 parent 959a4027c3
commit fca7aa2f63
11 files changed
+574 -6

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
/*
* 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 */