ImageElementInitPdfImage(Single, Single, Single, Single, Boolean, String) Method
Initializes an image element from a file. This method must be called on empty image elements
Namespace: WinnovativeAssembly: WnvHtmlToPdf_NetCore (in WnvHtmlToPdf_NetCore.dll) Version: 18.0.0
public void InitPdfImage(
float x,
float y,
float width,
float height,
bool keepAspectRatio,
string imageFile
)
Public Sub InitPdfImage (
x As Single,
y As Single,
width As Single,
height As Single,
keepAspectRatio As Boolean,
imageFile As String
)
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
- keepAspectRatio Boolean
- A flag indicating if the aspect ratio of the image is kept when the image is rendered in PDF
- imageFile String
- The full path of the image file