Gets binary format of an image generated from the specified HTML string 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[] GetImageBytesFromHtmlString(
	string htmlString,
	ImageFormat format
)
Visual Basic
Public Function GetImageBytesFromHtmlString ( 
	htmlString As String,
	format As ImageFormat
) As Byte()
Visual C++
public:
array<unsigned char>^ GetImageBytesFromHtmlString(
	String^ htmlString, 
	ImageFormat^ format
)

Parameters

htmlString
Type: System..::..String
The HTML string 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