Skip to main content
All docs
V24.1

DXLinearGradientBrush.SetBlendTriangularShape(Single) Method

Creates a linear gradient with a center color and a linear falloff to a single color on both ends.

Namespace: DevExpress.Drawing

Assembly: DevExpress.Drawing.v24.1.dll

NuGet Package: DevExpress.Drawing

Declaration

public void SetBlendTriangularShape(
    float focus
)

Parameters

Name Type Description
focus Single

A value (from 0 through 1) that specifies the point where the gradient is composed of only the ending color.

Remarks

This method specifies a focus, which is the point where the gradient is composed only of the ending color. The focus parameter represents a location as a proportion of the distance along the gradient line. The gradient falls off to the starting color linearly to either side.

See Also