Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Graphics.Images Namespace / PdfImageBase Class / GetNativeImage Method
The current color used to fill the unmasked area.
The color of the area that is excluded from filling (typically transparent).

In This Topic
    GetNativeImage Method (PdfImageBase)
    In This Topic
    Creates and returns a GrapeCity.Documents.Imaging.GcBitmap object representing the current PdfImageBase object.

    IMPORTANT NOTE: the returned bitmap must be disposed after use.

    An image in a PDF can be specified as an "image mask" (see ImageMask), in which 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
     
    Public Function GetNativeImage( _
       ByVal currentUnmaskedColor As System.Drawing.Color, _
       ByVal maskedColor As System.Drawing.Color _
    ) As GcBitmap
    public GcBitmap GetNativeImage( 
       System.Drawing.Color currentUnmaskedColor,
       System.Drawing.Color maskedColor
    )

    Parameters

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

    Return Value

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