Winnovative Excel to PDF Converter

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

Winnovative Excel to PDF Converter Documentation
Initializes an image element from a file. This method must be called on empty image elements

Namespace:  Winnovative.ExcelToPdf
Assembly:  wnvexceltopdf (in wnvexceltopdf.dll) Version: 10.0.0.0
Syntax

public void InitPdfImage(
	float x,
	float y,
	float width,
	float height,
	bool keepAspectRatio,
	string imageFile
)

Parameters

x
Type: SystemSingle
The image element X coordinate in points
y
Type: SystemSingle
The image element Y coordinate in points
width
Type: SystemSingle
The image element width in points
height
Type: SystemSingle
The image element height in points
keepAspectRatio
Type: SystemBoolean
A flag indicating if the aspect ratio of the image is kept when the image is rendered in PDF
imageFile
Type: SystemString
The full path of the image file
See Also

Reference