Editar

Partilhar via


SharpenEffect(Single, Single) Constructor

Definition

Creates a new SharpenEffect with the specified sharpening values.

public:
 SharpenEffect(float radius, float amount);
public SharpenEffect (float radius, float amount);
new System.Drawing.Imaging.Effects.SharpenEffect : single * single -> System.Drawing.Imaging.Effects.SharpenEffect
Public Sub New (radius As Single, amount As Single)

Parameters

radius
Single

Real number that specifies the sharpening radius (the radius of the convolution kernel) in pixels. The radius must be in the range 0 through 256. As the radius increases, more surrounding pixels are involved in calculating the new value of a given pixel.

amount
Single

Real number in the range 0 through 100 that specifies the amount of sharpening to be applied. A value of 0 specifies no sharpening. As the value of amount increases, the sharpness increases.

Exceptions

radius is less than 0 or greater than 256 or amount is less than 0

or greater than 100.

Applies to