IM: _imImage Struct Reference

IM - Imaging Libray

_imImage Struct Reference
[Image Structure]


Detailed Description

An image representation than supports all the color spaces, but no alpha channel, planes are always unpacked and the orientation is always bottom up.


Data Fields

int width
int height
int color_space
int data_type
int depth
int line_size
int plane_size
int size
int count
void ** data
long * palette
int palette_count
void * attrib_table

Field Documentation

int _imImage::width
 

Number of columns

int _imImage::height
 

Number of lines.

int _imImage::color_space
 

Color space descriptor.

int _imImage::data_type
 

Data type descriptor.

int _imImage::depth
 

Number of planes (ColorSpaceDepth)

int _imImage::line_size
 

Number of bytes per line in one plane (width * DataTypeSize)

int _imImage::plane_size
 

Number of bytes per plane. (line_size * height)

int _imImage::size
 

Number of bytes occupied by the image (plane_size * depth)

int _imImage::count
 

Number of pixels (width * height)

void** _imImage::data
 

Image data organized as a 2D matrix with several planes. But plane 0 is also a pointer to the full data. (data[i] = data[0] + i*plane_size)

long* _imImage::palette
 

Used when depth=1. Otherwise is NULL.

int _imImage::palette_count
 

The palette is always 256 colors allocated, but can have less colors used.

void* _imImage::attrib_table
 

in fact is a imAttribTable, but we hide this here


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