Creates image(s) with the data and properties read from the buffer with image bytes, 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(
	byte[] imageBuffer,
	PdfColor maskColor
)
VB
Public Function AddImage ( 
	imageBuffer As Byte(),
	maskColor As PdfColor
) As PdfImage

Parameters

imageBuffer
Type: System.Byte[]
The buffer with the image bytes from which to create PdfImage(s).
maskColor
Type: BitMiracle.Docotic.Pdf.PdfColor
The color that masks transparent areas of the image.

Return Value

Type: PdfImage
The PdfImage for the first frame (page) read from the buffer with image bytes.

Remarks

This method adds a new image for each frame (page) read from the buffer with image bytes. Mask color gets applied for all added images.

See Also