/* * TinyBlocks - tb_jpg.h * Library tinyblocks-jpg: carrega/grava JPEG (dependencia de terceiros: * libjpeg). As imagens entram/saem como TinyBlocks_Image (TB_VALUE_IMAGE). */ #ifndef TINYBLOCKS_JPG_H #define TINYBLOCKS_JPG_H #include TB_API const TinyBlocks_LibraryDescriptor* tb_jpg_get_library(void); TB_API TinyBlocks_Image* tb_jpg_load(const char* path); TB_API bool tb_jpg_save(const TinyBlocks_Image* img, const char* path, int quality); TB_API const char* tb_jpg_last_error(void); #endif /* TINYBLOCKS_JPG_H */