Creates image(s) with the data and properties read from the specified stream,
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(
Stream stream,
PdfColor maskColor
)
VB
Public Function AddImage (
stream As Stream,
maskColor As PdfColor
) As PdfImage
Parameters
- stream
- Type: System.IO.Stream
The stream with image data. - maskColor
- Type: BitMiracle.Docotic.Pdf.PdfColor
The color that masks transparent
areas of the image.
Return Value
Type:
PdfImageThe
PdfImage for the first frame (page) read from
the stream.
Remarks
This method adds a new image for each frame (page) read
from the stream. Mask color gets applied for all added images.
See Also