Back to Devexpress

TdxAdvancedColorPalette Class

vcl-dxcoregraphics-75aaf04d.md

latest2.3 KB
Original Source

TdxAdvancedColorPalette Class

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

Declaration

delphi
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.

GetIDReturns the palette’s unique 128-bit identifier.FillColors | StrokeColorsProvide access to fill and stroke color palettes.GetFillColor | GetStrokeColorReturn 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

TObject TInterfacedObject TdxCustomColorPalette TdxAdvancedColorPalette

See Also

TdxSimpleColorPalette Class

TdxAdvancedColorPalette Members

dxCoreGraphics Unit