PdfImageSetPdfImage(Single, Single, Single, Single, String) Method

Constructs a PDF image from the given image file to be laid out at the given coordinate and in the given width in a PDF canvas. The aspect ratio of the image is preserved in PDF. This method can be called only on an empty PDF image

Definition

Namespace: HiQPdf
Assembly: HiQPdf.NetCore (in HiQPdf.NetCore.dll) Version: 16.0.0
C#
public void SetPdfImage(
	float destX,
	float destY,
	float destWidth,
	float destHeight,
	string imageFilePath
)

Parameters

destX  Single
The destination X coordinate in points
destY  Single
The destination Y coordinate in points
destWidth  Single
The destination width in points
destHeight  Single
The destination height in points
imageFilePath  String
The full path of the image file

See Also