IM: _imDib Struct Reference

IM - An Imaging Tool

_imDib Struct Reference
[Windows DIB]


Detailed Description

Handles a DIB in memory.
The DIB is stored in only one buffer. The secondary members are pointers to the main buffer.


Data Fields

HGLOBAL handle
BYTE * dib
int size
BITMAPINFO * bmi
BITMAPINFOHEADER * bmih
RGBQUAD * bmic
BYTE * bits
int palette_count
int bits_size
int line_size
int pad_size
int is_reference

Field Documentation

HGLOBAL _imDib::handle
 

The windows memory handle

BYTE* _imDib::dib
 

The DIB as it is defined in memory

int _imDib::size
 

Full size in memory

BITMAPINFO* _imDib::bmi
 

Bitmap Info = Bitmap Info Header + Palette

BITMAPINFOHEADER* _imDib::bmih
 

Bitmap Info Header

RGBQUAD* _imDib::bmic
 

Bitmap Info Colors = Palette

BYTE* _imDib::bits
 

Bitmap Bits

int _imDib::palette_count
 

number of colors in the palette

int _imDib::bits_size
 

size in bytes of the Bitmap Bits

int _imDib::line_size
 

size in bytes of one line, includes padding

int _imDib::pad_size
 

number of bytes remaining in the line, lines are in a word boundary

int _imDib::is_reference
 

only a reference, do not free pointer


The documentation for this struct was generated from the following file: