GATE
imageformats.h File Reference

Generic image file format loading and saving utilities. More...

Macros

#define GATE_IMAGEFORMAT_UNKNOWN   0
 
#define GATE_IMAGEFORMAT_BITMAP   1
 
#define GATE_IMAGEFORMAT_PIXMAP   2
 
#define GATE_IMAGEFORMAT_JPEG   3
 
#define GATE_IMAGEFORMAT_PNG   4
 
#define GATE_IMAGEFORMAT_GIF   5
 

Functions

GATE_GRAPHICS_API gate_int32_t gate_imageformat_parse_file_extension (gate_string_t const *file_ext)
 
GATE_GRAPHICS_API char const * gate_imageformat_get_file_extension (gate_int32_t image_format)
 
GATE_GRAPHICS_API gate_result_t gate_imageformat_load (gate_int32_t image_format, gate_stream_t *srcstream, gate_rasterimage_t *image, gate_uint32_t flags)
 
GATE_GRAPHICS_API gate_result_t gate_imageformat_save (gate_int32_t image_format, gate_rasterimage_t const *image, gate_stream_t *deststream, gate_uint32_t flags)
 
GATE_GRAPHICS_API gate_result_t gate_imageformat_load_file (gate_string_t const *file_path, gate_stream_t *srcstream, gate_rasterimage_t *image, gate_uint32_t flags)
 
GATE_GRAPHICS_API gate_result_t gate_imageformat_save_file (gate_string_t const *file_path, gate_rasterimage_t const *image, gate_stream_t *deststream, gate_uint32_t flags)
 

Detailed Description

Generic image file format loading and saving utilities.