Converts the HTML string read from a stream to an image having the given format using a base URL.
This method is still present in the API to maintain the backward compatibility and it will be replaced
by ConvertHtmlStream(Stream, Encoding, String, ImageFormat) method in the future versions
Namespace: Winnovative
Assembly: wnvhtmltopdf (in wnvhtmltopdf.dll) Version: 17.0.0.0
Syntax
public byte[] GetImageBytesFromHtmlStream( Stream htmlStream, Encoding textEncoding, ImageFormat format, string baseUrl )
Parameters
- htmlStream
- Type: System.IOStream
The HTML stream - textEncoding
- Type: System.TextEncoding
The stream text encoding - format
- Type: System.Drawing.ImagingImageFormat
The image format - baseUrl
- Type: SystemString
The base URL
Return Value
Type: ByteThe created image bytes
See Also