Skip to main content

TdxAdvancedColorPalette Class

Stores and manages two color palettes with named colors for painting images and UI elements.

Declaration

TdxAdvancedColorPalette = class(
    TdxCustomColorPalette
)

Remarks

This class implements a pair of palettes that include named colors used to fill enclosed polygons and draw lines (strokes). Each palette is stored internally as a dictionary containing TdxAlphaColor values and their names. SVG image rendering routines can obtain colors from these palettes via the IdxColorPalette interface and use them instead of the standard colors corresponding to the recognized keywords specified in the ‘fill’ and ‘stroke’ attributes of SVG elements.

The TdxAdvancedColorPalette class provides the following members that allow you to:

You can paint an SVG image stored within a Smart Image or Smart Glyph container using the fill and stroke color palettes stored in a TdxAdvancedColorPalette object by passing it as the APalette parameter of the container’s StretchDraw procedure.

Inheritance

See Also