Color Mode Utilities
[Image Representation]
Detailed Description
- See im_util.h
Defines | |
#define | imColorModeSpace(_cm) (_cm & 0xFF) |
#define | imColorModeMatch(_cm1, _cm2) (imColorModeSpace(_cm1) == imColorModeSpace(_cm2)) |
#define | imColorModeHasAlpha(_cm) (_cm & IM_ALPHA) |
#define | imColorModeIsPacked(_cm) (_cm & IM_PACKED) |
#define | imColorModeIsTopDown(_cm) (_cm & IM_TOPDOWN) |
Functions | |
const char * | imColorModeSpaceName (int color_mode) |
int | imColorModeDepth (int color_mode) |
int | imColorModeToBitmap (int color_mode) |
int | imColorModeIsBitmap (int color_mode, int data_type) |
Define Documentation
|
Returns the color space of the color mode. |
|
Check if the two color modes match. Only the color space is compared. |
|
Check if the color mode has an alpha channel. |
|
Check if the color mode components are packed in one plane. |
|
Check if the color mode orients the image from top down to bottom. |
Function Documentation
|
Returns the color mode name. |
|
Returns the number of components of the color space including alpha. |
|
Returns the color mode of the equivalent display bitmap image. |
|
Check if the color mode and data_type defines a display bitmap image. |