TColorPalette::PaletteStyle Property

__property TGridPaletteStyle PaletteStyle = {read = FPaletteStyle, write = SetPaletteStyle};

Defines palette style.

Read: TGridPaletteStyle FPaletteStyle;
Write: void SetPaletteStyle(const TGridPaletteStyle Value);
Remarks:

Defines palette style used by series to display matrix values. TColorPalette supports two different ways to link colors with values:

  • Define color for minimum value, color for maximum value and number of levels in between. The algorithm will then automatically create palette entries with correcponding color for each level. In this case you have to set TColorPalette::BottomColor, TColorPalette::TopColor and TColorPalette::PaletteSteps properties and set PaletteStyle to palAuto. The number of steps in the palette will not affect the fill-in speed of the bitmap and you can be very generous, if needed by specifying large PaletteSteps count.
  • Define each level and it's color manually. Using this approach you can easily plot values using nonlinear color scale. In this case use ColorPalette.Add function to add new palette entries/levels. This method has the slowest fill-in speed of the bitmap and its speed linearly depends upon the number of palette entries.
See Also: PalettSteps, TColorPalette::TopColor, TColorPalette::BottomColor, TColorPalette::MidColor, TColorPalette::UseMidColor
Declared in Dew::Math::Controls::VCL::TColorPalette · Dew.Math.Controls.VCL/MtxVecTee.h · C++Builder only