Skip to main content

TdxSimpleColorPalette Class

A simple palette container that stores two colors.

Declaration

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

See Also