type TColorPalette = class(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.
Properties
| Name | Type | Description |
|---|---|---|
| AutoMaxMin | boolean | Set to true, if MaxValue and MinValue are computed internally. |
| MaxValue | double | |
| MinValue | double |
Methods
| Name | Description |
|---|---|
| Add | Add new custom palette level/entry. |
| ApplyColorBalance | |
| Clear | Clears the palette entries. |
| Color | Returns the color from the current color palette. |
| Create | |
| 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. |
| Destroy | |
| InternalRangeSet | |
| ResetPeakScale | Resets the scales in case of Peak-hold palette style. |
| SwapTopBottomColors | Swaps top and bottom colors. |
| UpdatePalette |
Constants
| Name | Type | Description |
|---|---|---|
| aRangeBlue (2) | integer) | |
| aRangeGreen (2) | integer) | |
| aRangeRed (2) | integer) | |
| aTopBlue | integer) | |
| aTopGreen | integer) | |
| aTopRed | integer) |