Skip to main content

TdxAdvancedColorPalette Class

Stores and manages two color palettes with named colors used in UI elements.

Declaration

TdxAdvancedColorPalette = class(
    TdxCustomColorPalette
)

Remarks

The TdxAdvancedColorPalette class implements a pair of palettes that include named colors used to fill enclosed polygons and draw lines (strokes). SVG image rendering routines can obtain colors from these palettes through the IdxColorPalette interface and use them instead of the standard colors that correspond to keywords specified in 'fill' and 'stroke' attributes of SVG elements.

Main API Members

The list below outlines key members of the TdxAdvancedColorPalette class. These members allow you to obtain and modify fill and stroke color palettes.

GetID
Returns the palette’s unique 128-bit identifier.
FillColors | StrokeColors
Provide access to fill and stroke color palettes.
GetFillColor | GetStrokeColor
Return fill and stroke palette colors by their names.

Direct TdxAdvancedColorPalette Class Reference

The TdxGPImage.StretchDraw procedure accepts a TdxAdvancedColorPalette object as the APalette parameter.

Inheritance

See Also