Document Solutions for Imaging
DS.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / GcBitmap Class / AddGlow Method
The optional background color of the resulting image.
The glow color.
The glow opacity, from 0 to 1.
The glow inflation radius, in pixels.
The Gaussian blur radius, in pixels.

In This Topic
    AddGlow Method
    In This Topic
    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.

    Syntax
    'Declaration
     
    Public Function AddGlow( _
       ByVal backColor As System.Nullable(Of Color), _
       ByVal glowColor As System.Drawing.Color, _
       Optional ByVal glowOpacity As System.Single, _
       Optional ByVal inflationRadius As System.Integer, _
       Optional ByVal gaussianBlurRadius As System.Integer _
    ) As GcBitmap
    public GcBitmap AddGlow( 
       System.Nullable<Color> backColor,
       System.Drawing.Color glowColor,
       System.float glowOpacity,
       System.int inflationRadius,
       System.int gaussianBlurRadius
    )

    Parameters

    backColor
    The optional background color of the resulting image.
    glowColor
    The glow color.
    glowOpacity
    The glow opacity, from 0 to 1.
    inflationRadius
    The glow inflation radius, in pixels.
    gaussianBlurRadius
    The Gaussian blur radius, in pixels.

    Return Value

    A GcBitmap with the glow effect added.
    See Also