[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.IPdfImage.GetNativeImage

GetNativeImage Method

GetNativeImage(Color, Color)

Gets the GcBitmap object associated with the current IPdfImage object. Important: this 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).

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

The current color used to fill unmasked area.

Color maskedColor

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

Returns
Type Description
GcBitmap

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