1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
#ifndef _SIMAGE_GDIPLUS_H_
#define _SIMAGE_GDIPLUS_H_
#include <config.h>
#ifndef SIMAGE_GDIPLUS_SUPPORT
#error "This file should not be used under the current configuration!"
#endif /* !SIMAGE_GDIPLUS_SUPPORT */
#ifdef __cplusplus
extern "C" {
#endif
int simage_gdiplus_error(char * textbuffer, int buffersize);
int simage_gdiplus_identify(const char * filename,
const unsigned char * header,
int headerlen);
unsigned char * simage_gdiplus_load(const char * filename,
int * width,
int * height,
int * numcomponents);
char * simage_gdiplus_get_savers(void); /* extra function needed to create saver info */
int simage_gdiplus_save(const char * filename,
const unsigned char * bytes,
int width,
int height,
int numcomponents,
const char * ext);
/* new for simage 1.6 */
void * simage_gdiplus_open(const char * filename,
int * width,
int * height,
int * numcomponents);
void simage_gdiplus_close(void * opendata);
int simage_gdiplus_read_line(void * opendata, int y, unsigned char * buf);
/*
* FIXME: unstable experimental region support API. Use it without
* knowing why and a fiercely looking fluffy cow will cross your way
* one day. The fluffy cow is gonna eat up all your code and will
* happily moo the doomsday symphony while blocking your getaway
* road. YA HAVE BEEN WARNED! 20060520 tamer.
*/
int simage_gdiplus_read_region(void * opendata,
int x, int y, int w, int h,
unsigned char * buf);
#ifdef __cplusplus
}
#endif
#endif /* _SIMAGE_GDIPLUS_H_ */
|