System.Drawing.Drawing2D.LinearGradientBrush.SetSigmaBellShape Method

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

Syntax

public void SetSigmaBellShape (float focus, float scale)

Parameters

focus
A value from 0 through 1 that specifies the center of the gradient (the point where the gradient is composed of only the ending color).
scale
A value from 0 through 1 that specifies how fast the colors falloff from the focus.

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

Requirements

Namespace: System.Drawing.Drawing2D
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0