System.Drawing.Drawing2D.PathGradientBrush.SetBlendTriangularShape Method

Creates a gradient with a center color and a linear falloff to one surrounding color.

Syntax

public void SetBlendTriangularShape (float focus)

Parameters

focus
A value from 0 through 1 that specifies where, along any radial from the center of the path to the path's boundary, the center color will be at its highest intensity. A value of 1 (the default) places the highest intensity at the center of the path.

Remarks

If there is more than one color in the PathGradientBrush.SurroundColors array, the first color in the array is used for the ending color. The colors specified in this array are used for discrete points on the brush's boundary path.

Requirements

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