Skip to main content

TdxGPBrushGradientMode Enum

Enumerates the gradient directions of the brush gradient painting mode.

Declaration

TdxGPBrushGradientMode = (
    gpbgmHorizontal,
    gpbgmVertical,
    gpbgmForwardDiagonal,
    gpbgmBackwardDiagonal
);

Members

Name
gpbgmHorizontal
gpbgmVertical
gpbgmForwardDiagonal
gpbgmBackwardDiagonal

Remarks

The TdxGPBrushGradientMode type is referenced by the GradientMode property implemented in the TdxGPBrush class.

The table below lists available directions of the gradient line within the brush, including the brush layout and actual appearance examples. For the convenience of visual comparison, all gradient examples contain the same two key points at the beginning (blue) and the end (red) of the gradient line.

Value

Description

Brush Layout

Brush Example

Masked Brush Examples (Painted Surfaces)

gpbgmHorizontal

The starting (Offset = 0) and ending (Offset = 1) points of the gradient line are located at the left and right bounds of the painted brush, respectively.

gpbgmVertical

The starting (Offset = 0) and ending (Offset = 1) points of the gradient line are located at the top and bottom bounds of the area painted by the brush, respectively.

gpbgmForwardDiagonal

The starting (Offset = 0) and ending (Offset = 1) points of the gradient line are located at in the upper-left and bottom-right corners of the area painted by the brush, respectively.

gpbgmBackwardDiagonal

The starting (Offset = 0) and ending (Offset = 1) points of the gradient line are located at the upper-right and bottom-left corners of the area painted by the brush, respectively.

See Also