TColorPalette Class

TPersistent→TColorPalette

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

NameTypeDescription
AutoMaxMinbooleanSet to true, if MaxValue and MinValue are computed internally.
MaxValuedouble
MinValuedouble

Methods

NameDescription
AddAdd new custom palette level/entry.
ApplyColorBalance
ClearClears the palette entries.
ColorReturns the color from the current color palette.
Create
CreateCustomColor2Palette
CreateCustomColor2PaletteInv
CreateCustomRainbow3Palette
CreateCustomRangePaletteCreate equidistant palette entries/levels.
CreateDefaultPaletteCreate default palette entries/levels.
CreatePeakHoldPaletteCreate default palette entries/levels, but keep the scale.
Destroy
InternalRangeSet
ResetPeakScaleResets the scales in case of Peak-hold palette style.
SwapTopBottomColorsSwaps top and bottom colors.
UpdatePalette

Constants

NameTypeDescription
aRangeBlue (2)integer)
aRangeGreen (2)integer)
aRangeRed (2)integer)
aTopBlueinteger)
aTopGreeninteger)
aTopRedinteger)