simage
1.8.3
Coin3D texture image library
|
#include <config.h>
#include <simage_gdiplus.h>
#include <windows.h>
#include <gdiplus.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <assert.h>
Macros | |
#define | LOCKBITS_RECT_CAST(arg) arg |
Enumerations | |
enum | { ERR_NO_ERROR , ERR_OPEN , ERR_READ , ERR_MEM , ERR_OPEN_WRITE , ERR_WRITE , ERR_NOT_IMPLEMENTED , ERR_INIT } |
Functions | |
static unsigned char * | copy16bppGrayScaleBuffer (unsigned char *src, unsigned int width, unsigned int height, unsigned int stride) |
static unsigned char * | copy32bppGrayScaleBuffer (unsigned char *src, unsigned int width, unsigned int height, unsigned int stride) |
static unsigned char * | copyImageBuffer (unsigned char *src, unsigned int width, unsigned int height, unsigned int numcomponents, unsigned int stride) |
static int | gdiplus_init (void) |
static int | GetEncoderClsid (const char *format, CLSID *pClsid) |
static Gdiplus::PixelFormat | getReadFormat (Gdiplus::Bitmap &bitmap, bool &grayscale) |
void | simage_gdiplus_close (void *opendata) |
int | simage_gdiplus_error (char *buffer, int buflen) |
char * | simage_gdiplus_get_savers (void) |
int | simage_gdiplus_identify (const char *ptr, const unsigned char *header, int headerlen) |
unsigned char * | simage_gdiplus_load (const char *filename, int *width, int *height, int *numcomponents) |
void * | simage_gdiplus_open (const char *filename, int *width, int *height, int *numcomponents) |
int | simage_gdiplus_read_line (void *opendata, int y, unsigned char *buf) |
int | simage_gdiplus_read_region (void *opendata, int x, int y, int w, int h, unsigned char *buf) |
int | simage_gdiplus_save (const char *filename, const unsigned char *bytes, int width, int height, int numcomponents, const char *filetypeext) |
Variables | |
static int | gdipluserror = ERR_NO_ERROR |
#define LOCKBITS_RECT_CAST | ( | arg | ) | arg |
anonymous enum |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void simage_gdiplus_close | ( | void * | opendata | ) |
int simage_gdiplus_error | ( | char * | buffer, |
int | buflen ) |
char * simage_gdiplus_get_savers | ( | void | ) |
int simage_gdiplus_identify | ( | const char * | ptr, |
const unsigned char * | header, | ||
int | headerlen ) |
unsigned char * simage_gdiplus_load | ( | const char * | filename, |
int * | width, | ||
int * | height, | ||
int * | numcomponents ) |
void * simage_gdiplus_open | ( | const char * | filename, |
int * | width, | ||
int * | height, | ||
int * | numcomponents ) |
int simage_gdiplus_read_line | ( | void * | opendata, |
int | y, | ||
unsigned char * | buf ) |
int simage_gdiplus_read_region | ( | void * | opendata, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
unsigned char * | buf ) |
int simage_gdiplus_save | ( | const char * | filename, |
const unsigned char * | bytes, | ||
int | width, | ||
int | height, | ||
int | numcomponents, | ||
const char * | filetypeext ) |
|
static |