Functions

Raw Data Utilities
[Image Representation]

Collaboration diagram for Raw Data Utilities:

Functions

int imImageDataSize (int width, int height, int color_mode, int data_type)
int imImageLineSize (int width, int color_mode, int data_type)
int imImageLineCount (int width, int color_mode)
int imImageCheckFormat (int color_mode, int data_type)

Detailed Description

See im_util.h

Function Documentation

int imImageDataSize ( int  width,
int  height,
int  color_mode,
int  data_type 
)

Returns the size of the data buffer.

im.ImageDataSize(width: number, height: number, color_mode: number, data_type: number) -> datasize: number [in Lua 5] 
int imImageLineSize ( int  width,
int  color_mode,
int  data_type 
)

Returns the size of one line of the data buffer.
This depends if the components are packed. If packed includes all components, if not includes only one.

im.ImageLineSize(width: number, color_mode: number, data_type: number) -> linesize: number [in Lua 5] 
int imImageLineCount ( int  width,
int  color_mode 
)

Returns the number of elements of one line of the data buffer.
This depends if the components are packed. If packed includes all components, if not includes only one.

im.ImageLineCount(width: number, color_mode: number) -> linecount: number [in Lua 5] 
int imImageCheckFormat ( int  color_mode,
int  data_type 
)

Check if the combination color_mode+data_type is valid.

im.ImageCheckFormat(color_mode: number, data_type: number) -> check: boolean [in Lua 5]