class TColorPalette : public TPersistent;
Computes different color palettes.
Stores parameters and computes different color palettes. It support transitions between two colors, three colors, rainbow transition between two colors and rainbow transitions between three colors. Rainbow and non-rainbow transitions can be mixed in three color models. Top and bottom clip-off colors can be specified separately.
Constructors
| Name | Description |
|---|---|
| TColorPalette |
Destructors
| Name | Description |
|---|---|
| ~TColorPalette |
Properties
| Name | Type | Description |
|---|---|---|
| AutoMaxMin | bool | Set to true, if MaxValue and MinValue are computed internally. |
| BottomClipOffColor | TColor | Defines the color for values exceeding the lower limit of the color pallete. |
| BottomColor | TColor | Defines color for the minimum value. |
| BottomMostColor | TColor | Defines color for the minimum value. |
| ColorBalance | double | Defines the color balance. |
| ColorBalanceMid | double | Defines the mid color balance for three color model. |
| MaxValue | double | |
| MidColor | TColor | Defines color for medium value. |
| MinValue | double | |
| OnUpdateColor | TNotifyEvent | Called when the color parameters are updated. |
| PaletteScale | TPaletteScale | Defines how to manage the automatic palette scaling. |
| PaletteSteps | int | Defines number of palette steps. |
| PaletteStyle | TGridPaletteStyle | Defines palette style. |
| Rainbow | TRainbowSettings* | Defines the rainbow color mixing. |
| SharpContrast | bool | Activates sharp contrast feature. |
| TopClipOffColor | TColor | Defines the color for values exceeding the upper limit of the color pallete. |
| TopColor | TColor | Defines color for the maximum value. |
| TopMostColor | TColor | Defines color for the maximum value. |
| UseBottomMostColor | bool | Enables five color model. |
| UseMidColor | bool | Enables three color model. |
| UseTopMostColor | bool | Enables five color model. |
Methods
| Name | Description |
|---|---|
| Add | Add new custom palette level/entry. |
| ApplyColorBalance | |
| CalcColorRange | |
| Clear | Clears the palette entries. |
| Color | Returns the color from the current color palette. |
| CreateCustomColor2Palette | |
| CreateCustomColor2PaletteInv | |
| CreateCustomRainbow3Palette | |
| CreateCustomRangePalette | Create equidistant palette entries/levels. |
| CreateDefaultPalette | Create default palette entries/levels. |
| CreatePeakHoldPalette | Create default palette entries/levels, but keep the scale. |
| DoUpdateColor | |
| GetAutoMaxMin | |
| GetBottomClipOffColor | |
| GetBottomColor | |
| GetBottomMostColor | |
| GetColorBalance | |
| GetColorBalanceMid | |
| GetMaxValue | |
| GetMidColor | |
| GetMinValue | |
| GetOnUpdateColor | |
| GetPaletteScale | |
| GetPaletteSteps | |
| GetPaletteStyle | |
| GetRainbow | |
| GetSharpContrast | |
| GetTopClipOffColor | |
| GetTopColor | |
| GetTopMostColor | |
| GetUseBottomMostColor | |
| GetUseMidColor | |
| GetUseTopMostColor | |
| InternalRangeSet | |
| ResetPeakScale | Resets the scales in case of Peak-hold palette style. |
| SetRainbow | |
| SwapTopBottomColors | Swaps top and bottom colors. |
| UpdatePalette |
Fields
| Name | Type | Description |
|---|---|---|
| FPalette | DewArray<TGridPalette> | |
| IBottomBlue | int | |
| IBottomGreen | int | |
| IBottomRed | int | |
| IMaxValue | double | |
| IMidBlue | int | |
| IMidGreen | int | |
| IMidRed | int | |
| IMinValue | double | |
| IRange | double | |
| IRangeBlue | int | |
| IRangeGreen | int | |
| IRangeInv | double | |
| IRangeMidBlue | int | |
| IRangeMidGreen | int | |
| IRangeMidRed | int | |
| IRangeRed | int | |
| ITopBlue | int | |
| ITopGreen | int | |
| ITopRed | int |