LiteCAD Colors | Home |
Function | Meaning |
---|---|
lcColorIsRGB | Determines if a color is RGB color or index |
lcColorGetRed | Returns Red component of a color |
lcColorGetGreen | Returns Green component of a color |
lcColorGetBlue | Returns Blue component of a color |
lcColorGetIndex | Returns color index |
lcColorToVal | Converts color value from string into integer components |
Function | Meaning |
---|---|
lcColorSetPalette | Sets RGB color for the palette index |
lcColorGetPalette | Returns palette RGB color for specified index |
lcColorSavePalette | Saves palette into a file |
lcColorLoadPalette | Loads palette from a file |
Constant | Color |
---|---|
LC_COLOR_RED | Red |
LC_COLOR_YELLOW | Yellow |
LC_COLOR_GREEN | Green |
LC_COLOR_CYAN | Cyan |
LC_COLOR_BLUE | Blue |
LC_COLOR_MAGENTA | Magenta |
LC_COLOR_FOREGROUND | Foreground (contrast to background color) |
LC_COLOR_GRAY | Gray |
LC_COLOR_LTGRAY | Light gray |
Logical colors for entities |
|
LC_COLOR_BYBLOCK | By block |
LC_COLOR_BYLAYER | By layer |
LC_COLOR_WIPEOUT | Same as window background |
lcPropPutStr( hLayer, LC_PROP_LAYER_COLOR, L"200,170,255" ); lcPropPutStr( hEnt, LC_PROP_ENT_COLOR, L"ByLayer" ); lcPropPutStr( hEnt, LC_PROP_ENT_COLOR, L"red" ); lcPropPutStr( hEnt, LC_PROP_ENT_COLOR, L"56" ); WCHAR szColor[32]; int bRGB, Index, R, G, B; wcscpy( szColor, lcPropGetStr(hEnt,LC_PROP_ENT_COLOR) ); lcColorToVal( szColor, &bRGB, &Index, &R, &G, &B );