IM: im_dib.h File Reference

IM - Imaging Libray

im_dib.h File Reference


Detailed Description

See Copyright Notice in im_lib.h
Id
Exp

Go to the source code of this file.

Data Structures

struct  _imDib
 Windows DIB Structure. More...

Typedefs

typedef _imDib imDib
typedef unsigned long(* imDibLineGetPixel )(unsigned char *line, int col)
typedef void(* imDibLineSetPixel )(unsigned char *line, int col, unsigned long pixel)

Functions

imDibimDibCreate (int width, int height, int bpp)
imDibimDibCreateCopy (const imDib *dib)
imDibimDibCreateReference (BYTE *bmi, BYTE *bits)
imDibimDibCreateSection (HDC hDC, HBITMAP *image, int width, int height, int bpp)
void imDibDestroy (imDib *dib)
imDibLineGetPixel imDibLineGetPixelFunc (int bpp)
imDibLineSetPixel imDibLineSetPixelFunc (int bpp)
imDibimDibFromHBitmap (const HBITMAP image, const HPALETTE hPalette)
HBITMAP imDibToHBitmap (const imDib *dib)
HPALETTE imDibLogicalPalette (const imDib *dib)
imDibimDibCaptureScreen (int x, int y, int width, int height)
void imDibCopyClipboard (imDib *dib)
imDibimDibPasteClipboard (void)
int imDibIsClipboardAvailable (void)
int imDibSaveFile (const imDib *dib, const char *filename)
imDibimDibLoadFile (const char *filename)
void imDibDecodeToRGBA (const imDib *dib, unsigned char *red, unsigned char *green, unsigned char *blue, unsigned char *alpha)
void imDibDecodeToMap (const imDib *dib, unsigned char *map, long *palette)
void imDibEncodeFromRGBA (imDib *dib, const unsigned char *red, const unsigned char *green, const unsigned char *blue, const unsigned char *alpha)
void imDibEncodeFromMap (imDib *dib, const unsigned char *map, const long *palette, int palette_count)
void imDibEncodeFromBitmap (imDib *dib, const unsigned char *data)
void imDibDecodeToBitmap (const imDib *dib, unsigned char *data)