Documents for PDF .NET Edition
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / IPdfImage Interface / GetNativeImage Method
The current color used to fill unmasked area.
The masked color specifies the color of the area that is excluded from filling (typically transparent).

In This Topic
    GetNativeImage Method
    In This Topic
    Gets the GrapeCity.Documents.Imaging.GcBitmap object associated with the current IPdfImage object. Important: this GrapeCity.Documents.Imaging.GcBitmap must be disposed after use.

    In a PDF images can be specified as "image mask" (see ImageMask), in that case the image data is used as a stencil mask for painting in the current color specified by currentUnmaskedColor, maskedColor specifies the color of the area excluded from filling (it is transparent in most cases).

    Syntax
    'Declaration
     
    Function GetNativeImage( _
       ByVal currentUnmaskedColor As System.Drawing.Color, _
       ByVal maskedColor As System.Drawing.Color _
    ) As GcBitmap
    GcBitmap GetNativeImage( 
       System.Drawing.Color currentUnmaskedColor,
       System.Drawing.Color maskedColor
    )

    Parameters

    currentUnmaskedColor
    The current color used to fill unmasked area.
    maskedColor
    The masked color specifies the color of the area that is excluded from filling (typically transparent).

    Return Value

    The GrapeCity.Documents.Imaging.GcBitmap object (must be disposed after use!).
    See Also