ImageElementInitPdfImage(Single, Single, Single, Single, String) Method

Initializes an image element from a file keeping the aspect ratio. This method must be called on empty image elements

Definition

Namespace: EvoPdf
Assembly: EvoHtmlToPdf_NetCore (in EvoHtmlToPdf_NetCore.dll) Version: 11.0.0
C#
public void InitPdfImage(
	float x,
	float y,
	float width,
	float height,
	string imageFile
)

Parameters

x  Single
The image element X coordinate in points
y  Single
The image element Y coordinate in points
width  Single
The image element width in points
height  Single
The image element height in points
imageFile  String
The full path of the image file

See Also