HiQPdf Documentation

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

Quickly Create High Quality PDFs
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

Namespace:  HiQPdf
Assembly:  HiQPdf (in HiQPdf.dll) Version: 15.0.0.0
Syntax

public void SetPdfImage(
	float destX,
	float destY,
	float destWidth,
	float destHeight,
	bool preserveAspectRatio,
	string imageFilePath
)

Parameters

destX
Type: SystemSingle
The destination X coordinate in points
destY
Type: SystemSingle
The destination Y coordinate in points
destWidth
Type: SystemSingle
The destination width in points
destHeight
Type: SystemSingle
The destination height in points
preserveAspectRatio
Type: SystemBoolean
Controls if the aspect ratio of the image is preserved
imageFilePath
Type: SystemString
The full path of the image file
See Also

Reference