Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

See Also