PdfImageSetPdfImage(Single, Single, Single, Single, Boolean, 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. 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,
	bool preserveAspectRatio,
	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
preserveAspectRatio  Boolean
Controls if the aspect ratio of the image is preserved
imageFilePath  String
The full path of the image file

See Also