Gets binary format of an image generated from the specified HTML string in the
the specified System.Drawing.Imaging.ImageFormat format. The htmlString is first saved into
a temporary file before performing the conversion
The bytes can be further written in
any stream like a disk file or a web response.
| C# | Visual Basic | Visual C++ |
public byte[] GetImageBytesFromHtmlStringWithTempFile( string htmlString, ImageFormat format )
Public Function GetImageBytesFromHtmlStringWithTempFile ( _ htmlString As String, _ format As ImageFormat _ ) As Byte()
public: array<unsigned char>^ GetImageBytesFromHtmlStringWithTempFile( String^ htmlString, ImageFormat^ format )
- htmlString (String)
- The HTML string to be converted to image
- format (ImageFormat)
- The image format
The binary representation of the image as byte[] object