Creates a new image with the data and properties read from the file with specified name, applies mask read from another file with specified name 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(
	string fileName,
	string maskFileName
)
VB
Public Function AddImage ( 
	fileName As String,
	maskFileName As String
) As PdfImage

Parameters

fileName
Type: System.String
Name of the file from which to create a PdfImage.
maskFileName
Type: System.String
Name of the file 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