PdfDocument.AddImage Method (PdfImageFrame)

Creates a new image from specified PdfImageFrame and adds it 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(
	PdfImageFrame frame
)
VB
Public Function AddImage ( 
	frame As PdfImageFrame
) As PdfImage

Parameters

frame
Type: BitMiracle.Docotic.Pdf.PdfImageFrame
The image frame to use.

Return Value

Type: PdfImage
The created PdfImage.

Remarks

This method will load image frame data, apply all specified transformations and create a new PdfImage. The created PdfImage will be added to the collection of document images.

If an image frame specified by the frame parameter was already used to create an PdfImage then this method will throw an exception.

See Also