TLabColor Record
Implements a simple representation of a color in CIE-L*a*b* colorspace. This colorspace is mostly used for finding distances between colors.
Syntax
Unit: FlexCel.Core
TLabColor = record;
Methods
| Name |
Description |
| CMCSquared |
Returns the CMC color distance between this color and color2 (distance returned is squared, so you need to get the sqrt if you want the real CMC value). Note that CMC is not symmetric (Color1.CMC(Color2) != Color2.CMC(Color1), so this color is the one used as reference.
|
| CompareTo |
Returns -1 if obj is more than color, 0 if both colors are the same, and 1 if obj is less than color.
|
| Create |
Overloaded Create(TUIColor) Create(TColor)
|
| DistanceSquared |
Returns the euclidean distance squared (DeltaE CIE 1976 squared) between this color and other color.
|
| Equals |
Returns true if both colors are the same.
|
| GetHashCode |
Returns a hashcode for the color.
|
| ToColor |
Returns a system color from this instance. This method is only needed in C++, in Delphi you can just assign the LabColor to the Color:...[more] |
Operators
Properties
| Name |
Description |
| a0 |
a* component.
|
| B |
Blue component in the RGB space.
|
| b0 |
b* component.
|
| G |
Green component in the RGB space.
|
| L0 |
L* (Lightness) (Between 0 and 100) |
| R |
Red component in the RGB space.
|