[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Graphics.Images.PdfImageBase.GetNativeImage

GetNativeImage Method

GetNativeImage(Color, Color)

Creates and returns a 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).

Declaration
public GcBitmap GetNativeImage(Color currentUnmaskedColor, Color maskedColor)
Public Function GetNativeImage(currentUnmaskedColor As Color, maskedColor As Color) As GcBitmap
Parameters
Type Name Description
Color currentUnmaskedColor

The current color used to fill the unmasked area.

Color maskedColor

The color of the area that is excluded from filling (typically transparent).

Returns
Type Description
GcBitmap

The created GcBitmap object (must be disposed after use!).

Implements