Document Solutions for Imaging
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / GrayscaleBitmap Class / ToShadowBitmap Method / ToShadowBitmap(Color,Single,Boolean) Method
The color to fill opaque pixels of the target bitmap.
Additional factor to scale the alpha channel.
Specifies whether zero values correspond to fully opaque (true) or fully transparent (false) pixels.

In This Topic
    ToShadowBitmap(Color,Single,Boolean) Method
    In This Topic
    Creates a semi-transparent GcBitmap from the current GrayscaleBitmap.

    This method treats the current GrayscaleBitmap as a transparency mask, regardless of the TransparencyMask property value.

    Syntax
    'Declaration
     
    Public Overloads Function ToShadowBitmap( _
       ByVal shadowColor As System.Drawing.Color, _
       Optional ByVal opacityFactor As System.Single, _
       Optional ByVal zeroIsOpaque As System.Boolean _
    ) As GcBitmap
    public GcBitmap ToShadowBitmap( 
       System.Drawing.Color shadowColor,
       System.float opacityFactor,
       System.bool zeroIsOpaque
    )

    Parameters

    shadowColor
    The color to fill opaque pixels of the target bitmap.
    opacityFactor
    Additional factor to scale the alpha channel.
    zeroIsOpaque
    Specifies whether zero values correspond to fully opaque (true) or fully transparent (false) pixels.

    Return Value

    The newly created GcBitmap.
    See Also