IM: Image Utilities

IM - Imaging Libray

Image 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

int imImageDataSize int  width,
int  height,
int  color_mode,
int  data_type
 

Returns the size of the data buffer.

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.

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.

int imImageCheckFormat int  color_mode,
int  data_type
 

Check the combination color_mode+data_type.