Raw Data Utilities
[Image Representation]
Detailed Description
- See im_util.h
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) |
Function Documentation
|
Returns the size of the data buffer.
im.ImageDataSize(width: number, height: number, color_mode: number, data_type: number) -> datasize: number [in Lua 5] |
|
Returns the size of one line of the data buffer.
im.ImageLineSize(width: number, color_mode: number, data_type: number) -> linesize: number [in Lua 5] |
|
Returns the number of elements of one line of the data buffer.
im.ImageLineCount(width: number, color_mode: number) -> linecount: number [in Lua 5] |
|
Check if the combination color_mode+data_type is valid.
im.ImageCheckFormat(color_mode: number, data_type: number) -> check: boolean [in Lua 5] |