PdfDocument.AddImage Method (Image, PdfColor)

Creates image(s) with the data and properties of specified Image, applies specified mask color to them and adds resulting image(s) to the end of the collection of document images.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public PdfImage AddImage(
	Image image,
	PdfColor maskColor
)
VB
Public Function AddImage ( 
	image As Image,
	maskColor As PdfColor
) As PdfImage

Parameters

image
Type: System.Drawing.Image
The existing Image from which to create PdfImage(s).
maskColor
Type: BitMiracle.Docotic.Pdf.PdfColor
The color that masks transparent areas of the image(s).

Return Value

Type: PdfImage
The PdfImage for the first frame (page) found in the existing Image.

Remarks

This method adds a new image for each frame (page) found in the existing Image. Mask color gets applied for all added images.

See Also