mi32/color.h File Reference

> More...

#include <mi32/inibase.h>
#include <mi32/colorspc.h>
#include <mi32/membuf.h>
Include dependency graph for color.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  COLOR
 Structure to contain single color specification with possible transparency. More...

Defines

#define CLASSLIBEXPORT   MI_DLLCLASSIMPORT
#define NUMSTDCOLORS   80
#define STD64STEP   21845

Enumerations

enum  COLORMODEL { COLORMODEL_RGB = 0, COLORMODEL_CMY = 1, COLORMODEL_CMYK = 2, COLORMODEL_COUNT }

Functions

int IniRead (INIHANDLE hdl, const char *group, const char *field, COLOR &value, const COLOR &dft)
int IniRead (INIHANDLE hdl, const char *group, const char *field, COLOR &value)
int IniWrite (INIHANDLE hdl, const char *group, const char *field, const COLOR &value)
bool operator!= (const COLOR &lhs, const COLOR &rhs)
bool operator== (const COLOR &lhs, const COLOR &rhs)
void SwapBytes (COLOR &color)

Detailed Description

>

Definitions for COLOR structure and functions


Define Documentation

#define CLASSLIBEXPORT   MI_DLLCLASSIMPORT
#define NUMSTDCOLORS   80

64 color + 16 gray

#define STD64STEP   21845

Step value for creating 64 "standard" colors (65535 / 3).


Enumeration Type Documentation

enum COLORMODEL

Color "model" enumeration.

Enumerator:
COLORMODEL_RGB 

Red-Green-Blue.

COLORMODEL_CMY 

Cyan-Magenta-Yellow.

COLORMODEL_CMYK 

Cyan-Magenta-Yellow-Black.

COLORMODEL_COUNT 

Function Documentation

int IniRead ( INIHANDLE  hdl,
const char *  group,
const char *  field,
COLOR value,
const COLOR dft 
) [inline]

Read 'COLOR' value from INI file with default.

int IniRead ( INIHANDLE  hdl,
const char *  group,
const char *  field,
COLOR value 
) [inline]

Read 'COLOR' value from INI file.

int IniWrite ( INIHANDLE  hdl,
const char *  group,
const char *  field,
const COLOR value 
) [inline]

Write 'COLOR' value to INI file.

bool operator!= ( const COLOR lhs,
const COLOR rhs 
) [inline]

Compare COLORs for inequality.

bool operator== ( const COLOR lhs,
const COLOR rhs 
) [inline]

Compare COLORs for equality.

void SwapBytes ( COLOR color  )  [inline]

Perform byte-swapping on COLOR.


Generated on Sun Oct 7 21:25:45 2012 for TNTsdk 2012 by  doxygen 1.6.1