Click or drag to resize
Pdftools logo

ContentGeneratorPaintImage Method

Paint an image.


Namespace: PdfTools.Toolbox.Pdf.Content
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.7.1+cd848a3eabf1b263af73d28a644a529edd2f1318
Syntax
C#
public void PaintImage(
	Image image,
	Rectangle targetRect
)

Parameters

image  Image
the image to be painted
targetRect  Rectangle
the target rectangle in the current coordinate system. If targetRect is , the unit rectangle [0, 0, 1, 1] is used.
Exceptions
ExceptionCondition
InvalidOperationExceptionif the document associated with the content has already been closed
InvalidOperationExceptionif the page/group associated with the content has already been closed
InvalidOperationExceptionif the content object has already been closed
InvalidOperationExceptionif the object has already been closed
ArgumentExceptionif the document associated with image has already been closed
ArgumentExceptionif the image is associated with a different document
ArgumentNullExceptionif image is .
See Also