Creates a new image with the data and properties read from the buffer with
image bytes, applies mask constructed from the buffer with mask
image bytes 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(
byte[] imageBuffer,
byte[] maskBuffer
)
VB
Public Function AddImage (
imageBuffer As Byte(),
maskBuffer As Byte()
) As PdfImage
Parameters
- imageBuffer
- Type: System.Byte[]
The buffer with the image bytes from which
to create a PdfImage. - maskBuffer
- Type: System.Byte[]
The buffer with the mask image bytes from
which to create the mask for the PdfImage.
Return Value
Type:
PdfImageThe 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