LinearGradientBrush::SetSigmaBellShape Method (Single)

 

Creates a gradient falloff based on a bell-shaped curve.

Namespace:   System.Drawing.Drawing2D
Assembly:  System.Drawing (in System.Drawing.dll)

public:
void SetSigmaBellShape(
	float focus
)

Parameters

focus
Type: System::Single

A value from 0 through 1 that specifies the center of the gradient (the point where the starting color and ending color are blended equally).

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 based on a bell curve shape (normal distribution) to either side.

For an example, see SetSigmaBellShape.

.NET Framework
Available since 1.1
Return to top
Show: