Gets binary format of an image generated from the specified HTML file in the the specified ImageFormat format. The bytes can be further written in any stream like a disk file or a web response.

Namespace: EvoPdf
Assembly: evohtmltopdf (in evohtmltopdf.dll) Version: 4.12.0.0

Syntax

C#
public byte[] GetImageBytesFromHtmlFile(
	string htmlFilePath,
	ImageFormat format
)
Visual Basic
Public Function GetImageBytesFromHtmlFile ( 
	htmlFilePath As String,
	format As ImageFormat
) As Byte()
Visual C++
public:
array<unsigned char>^ GetImageBytesFromHtmlFile(
	String^ htmlFilePath, 
	ImageFormat^ format
)

Parameters

htmlFilePath
Type: System..::..String
The full path of the HTML file to be converted to image
format
Type: System.Drawing.Imaging..::..ImageFormat
The image format

Return Value

Type: array<Byte>[]()[][]
The binary representation of the image as byte[] object

See Also