Gets binary format of an image generated from the specified HTML stream in the
the specified ImageFormat format. The bytes can be further written in
any stream like a disk file or a web response.
Namespace: EvoPdfAssembly: evohtmltopdf (in evohtmltopdf.dll) Version: 4.12.0.0
Syntax
| C# |
|---|
public byte[] GetImageBytesFromHtmlStream( Stream htmlStream, Encoding streamEncoding, ImageFormat format ) |
| Visual Basic |
|---|
Public Function GetImageBytesFromHtmlStream ( htmlStream As Stream, streamEncoding As Encoding, format As ImageFormat ) As Byte() |
| Visual C++ |
|---|
public: array<unsigned char>^ GetImageBytesFromHtmlStream( Stream^ htmlStream, Encoding^ streamEncoding, ImageFormat^ format ) |
Parameters
- htmlStream
- Type: System.IO..::..Stream
The HTML stream
- streamEncoding
- Type: System.Text..::..Encoding
The encoding of the HTML stream
- format
- Type: System.Drawing.Imaging..::..ImageFormat
The image format
Return Value
Type: array<Byte>[]()[][]The binary representation of the image as byte[] object