[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GcBitmap.AddGlow

AddGlow Method

AddGlow(Color?, Color, float, int, int)

Creates a new bitmap by adding a glow to text and graphics on the current image.

The glow effect inflates all non-transparent areas of an image by a specified amount, then applies a Gaussian blur to make the border smooth. The glow shows only where the pixels of the current image are transparent or semi-transparent.

Declaration
public GcBitmap AddGlow(Color? backColor, Color glowColor, float glowOpacity = 0.8, int inflationRadius = 6, int gaussianBlurRadius = 9)
Public Function AddGlow(backColor As Color?, glowColor As Color, Optional glowOpacity As Single = 0.8, Optional inflationRadius As Integer = 6, Optional gaussianBlurRadius As Integer = 9) As GcBitmap
Parameters
Type Name Description
Color? backColor

The optional background color of the resulting image.

Color glowColor

The glow color.

float glowOpacity

The glow opacity, from 0 to 1.

int inflationRadius

The glow inflation radius, in pixels.

int gaussianBlurRadius

The Gaussian blur radius, in pixels.

Returns
Type Description
GcBitmap

A GcBitmap with the glow effect added.