24 lines
950 B
C
24 lines
950 B
C
/*
|
|
* TinyBlocks - tb_imglib.h
|
|
* Library tinyblocks-image: operacoes genericas sobre TinyBlocks_Image e
|
|
* carregamento/gravacao por extensao (via registro de formatos do core).
|
|
* Reune os formatos ppm/bmp/png/jpg (quando carregados) e serve de base para
|
|
* as libraries de alto nivel (svg, vg).
|
|
*/
|
|
#ifndef TINYBLOCKS_IMGLIB_H
|
|
#define TINYBLOCKS_IMGLIB_H
|
|
|
|
#include <tinyblocks/tinyblocks.h>
|
|
|
|
TB_API const TinyBlocks_LibraryDescriptor* tb_imglib_get_library(void);
|
|
|
|
/* -- API C --- */
|
|
TB_API TinyBlocks_Image* tb_imglib_fill (TinyBlocks_Image* img,
|
|
uint8_t r, uint8_t g, uint8_t b, uint8_t a);
|
|
TB_API TinyBlocks_Image* tb_imglib_crop (const TinyBlocks_Image* img,
|
|
int x, int y, int w, int h);
|
|
TB_API TinyBlocks_Image* tb_imglib_scale(const TinyBlocks_Image* img,
|
|
int w, int h, bool smooth);
|
|
|
|
#endif /* TINYBLOCKS_IMGLIB_H */
|