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

Parameters

url
Type: System..::..String
The web page URL
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