|
FlexCel Studio for VCL/LCL
|
Returns the most similar entry on the excel palette for a given color.
function NearestColorIndex(const aColor: TColor): integer; overload;
__fastcall int NearestColorIndex(const TColor aColor);
|
Parameters |
Description |
|
const aColor: TColor |
Color we want to use. |
Most similar color on the Excel palette.
If UsedColors is not nil, it will try to modify the Excel color palette to get a better match on the color, modifying among the not used colors. Note that modifying the standard palette might result on a file that is not easy to edit on Excel later, since it does not have the standard Excel colors.
|
Copyright (c) 2002-2008 TMS Software. All rights reserved.
|
|
What do you think about this topic? Send feedback!
|