Creates a new image with the data and properties of specified Image, applies mask constructed from specified Image to it and adds resulting image 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,
	Image mask
)
VB
Public Function AddImage ( 
	image As Image,
	mask As Image
) As PdfImage

Parameters

image
Type: System.Drawing.Image
The existing Image from which to create a PdfImage.
mask
Type: System.Drawing.Image
The existing Image from which to create the mask for the PdfImage.

Return Value

Type: PdfImage
The created PdfImage.

Remarks

Mask images with only one frame (page) are supported. This method creates an image for the first frame (page) of the source image only.

See Also