Редактиране

Споделяне чрез


BlurEffect(Single, Boolean) Constructor

Definition

Creates a new BlurEffect with the specified blur radius.

public:
 BlurEffect(float radius, bool expandEdge);
public BlurEffect (float radius, bool expandEdge);
new System.Drawing.Imaging.Effects.BlurEffect : single * bool -> System.Drawing.Imaging.Effects.BlurEffect
Public Sub New (radius As Single, expandEdge As Boolean)

Parameters

radius
Single

Real number that specifies the blur radius (the radius of the Gaussian convolution kernel) in pixels. The radius must be in the range 0 through 256. As the radius increases, the resulting bitmap becomes more blurry.

expandEdge
Boolean

true to expand the bitmap by an amount equal to the blur radius so that it can have soft edges; false to keep the bitmap the same size and clip the soft edges.

Exceptions

radius is less than 0 or greater than 256.

Applies to