ImageElement(Single, Single, Single, Single, Boolean, String) Constructor

Creates an ImageElement from the specified file that will be rendered at the position (x,y) with the (destWidth,destHeight) size.

Definition

Namespace: Winnovative
Assembly: WnvHtmlToPdf_NetCore (in WnvHtmlToPdf_NetCore.dll) Version: 18.0.0
C#
public ImageElement(
	float x,
	float y,
	float destWidth,
	float destHeight,
	bool keepAspectRatio,
	string filePath
)

Parameters

x  Single
The X location where this element will be rendered
y  Single
The Y location where this element will be rendered
destWidth  Single
The destination rectangle width
destHeight  Single
The destination rectangle height
keepAspectRatio  Boolean
A flag indicating if the aspect ratio of the image is kept when the image is rendered in PDF
filePath  String
The image file path

See Also