PdfDocument.AddImage Method (Stream, Stream)

Creates a new image with the data and properties read from the specified stream, applies mask read from another stream 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(
	Stream stream,
	Stream maskStream
)
VB
Public Function AddImage ( 
	stream As Stream,
	maskStream As Stream
) As PdfImage

Parameters

stream
Type: System.IO.Stream
The stream with image data.
maskStream
Type: System.IO.Stream
The stream with mask image data.

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