_imImage

\brief Image Representation Structure * * \par * An image representation than supports all the color spaces, * but planes are always unpacked and the orientation is always bottom up. * \ingroup imgclass

Members

Variables

attrib_table
void* attrib_table;

< in fact is an imAttribTable, but we hide this here

color_space
int color_space;

< Color space descriptor. See also \ref imColorSpace. image:ColorSpace() -> color_space: number [in Lua 5].

count
int count;

< Number of pixels per plane (width * height)

data
void** data;

< Image data organized as a 2D matrix with several planes. \n But plane 0 is also a pointer to the full data. \n The remaining planes are: "datai = data[0] + i*plane_size". \n In Lua, data indexing is possible using: "imageplanelinecolumn". \n Also in Lua, is possible to set all pixels using a table calling "image:SetPixels(table)" and get all pixels using "table = image:GetPixels()" (Since 3.9).

data_type
int data_type;

< Data type descriptor. See also \ref imDataType. image:DataType() -> data_type: number [in Lua 5].

depth
int depth;

< Number of planes (ColorSpaceDepth) image:Depth() -> depth: number [in Lua 5].

has_alpha
int has_alpha;

< Indicates that there is an extra channel with alpha. image:HasAlpha() -> has_alpha: boolean [in Lua 5]. \n It will not affect the secondary parameters, i.e. the number of planes will be in fact depth+1. \n It is always 0 unless imImageAddAlpha is called. Alpha is automatically added in image loading functions.

height
int height;

< Number of lines. image:Height() -> height: number [in Lua 5].

line_size
int line_size;

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

palette
c_long* palette;

< Color palette. image:GetPalette() -> palette: imPalette [in Lua 5]. \n Used only when depth=1. Otherwise is NULL.

palette_count
int palette_count;

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

plane_size
int plane_size;

< Number of bytes per plane. (line_size * height)

size
int size;

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

width
int width;

< Number of columns. image:Width() -> width: number [in Lua 5].

Meta