[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GcBitmap.ApplySoftEdges

ApplySoftEdges Method

ApplySoftEdges(Color?, int, int)

Applies a soft edges effect to the current image.

The soft edges effect deflates all non-transparent areas of an image by a specified amount, then applies a Gaussian blur to make the border smooth.

Declaration
public void ApplySoftEdges(Color? backColor, int inflationRadius = -6, int gaussianBlurRadius = 9)
Public Sub ApplySoftEdges(backColor As Color?, Optional inflationRadius As Integer = -6, Optional gaussianBlurRadius As Integer = 9)
Parameters
Type Name Description
Color? backColor

The optional background color of the resulting image.

int inflationRadius

The negative radius of inflation, in pixels.

int gaussianBlurRadius

The Gaussian blur radius, in pixels.