Back to Devexpress

TdxSimpleColorPalette Class

vcl-dxcoregraphics-59886c20.md

latest2.4 KB
Original Source

TdxSimpleColorPalette Class

A simple palette container that stores two colors.

Declaration

delphi
TdxSimpleColorPalette = class(
    TdxCustomColorPalette
)

Remarks

This class implements a simple two-color palette designed to paint simple UI elements using two different colors. One color fills enclosed polygons while the other is used to draw outlines and strokes.

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

You can paint an SVG image within a Smart Image or Smart Glyph container using the fill and stroke colors stored in a TdxSimpleColorPalette object by passing it as the APalette parameter of the container’s StretchDraw procedure. The procedure uses the same two fill and stroke colors instead of colors specified in the ‘fill’ and ‘stroke’ attributes of all SVG elements as a result.

Inheritance

TObject TInterfacedObject TdxCustomColorPalette TdxSimpleColorPalette

See Also

TdxAdvancedColorPalette

TdxSimpleColorPalette Members

dxCoreGraphics Unit