[]
Provides extension methods for rendering HTML on a GcBitmapGraphics.
public static class GcBitmapGraphicsExt
Draws an HTML string on this GcBitmapGraphics at a specified position.
public static bool DrawHtml(this GcBitmapGraphics graphics, GcHtmlBrowser browser, string html, float x, float y, HtmlToImageFormat format, out SizeF size, bool loadLazyImages = false)
graphics
GcBitmapGraphicsThe target GcBitmapGraphics object.
browser
GcHtmlBrowserAn instance of GcHtmlBrowser object.
html
stringThe HTML string to draw.
x
floatThe x-coordinate at which to draw the HTML block.
y
floatThe y-coordinate at which to draw the HTML block.
format
HtmlToImageFormatThe formatting attributes.
size
System.Drawing.SizeFOUT: the size of the rendered HTML block.
loadLazyImages
boolWhether to scroll the page down to the end to force pending images to load.
True if the drawn block is not empty, false otherwise.
Draws an HTML page provided by an URI on this GcBitmapGraphics at a specified position.
public static bool DrawHtml(this GcBitmapGraphics graphics, GcHtmlBrowser browser, Uri htmlUri, float x, float y, HtmlToImageFormat format, out SizeF size, bool loadLazyImages = false)
graphics
GcBitmapGraphicsThe target GcBitmapGraphics object.
browser
GcHtmlBrowserAn instance of GcHtmlBrowser object.
htmlUri
System.UriThe URI specifying the source HTML page.
x
floatThe x-coordinate at which to draw the HTML block.
y
floatThe y-coordinate at which to draw the HTML block.
format
HtmlToImageFormatThe formatting attributes.
size
System.Drawing.SizeFOUT: the size of the rendered HTML block.
loadLazyImages
boolWhether to scroll the page down to the end to force pending images to load.
True if the drawn block is not empty, false otherwise.
Draws an HTML string on this GcBitmapGraphics at a specified position.
[Obsolete("Use the DrawHtml method override accepting GcHtmlBrowser as a parameter instead.")]
public static bool DrawHtml(this GcBitmapGraphics graphics, string html, float x, float y, HtmlToImageFormat format, out SizeF size, int virtualTimeBudget = 0, string authServerWhitelist = null, string proxyServer = null)
graphics
GcBitmapGraphicsThe target GcBitmapGraphics object.
html
stringThe HTML string to draw.
x
floatThe x-coordinate at which to draw the HTML block.
y
floatThe y-coordinate at which to draw the HTML block.
format
HtmlToImageFormatThe formatting attributes.
size
System.Drawing.SizeFOUT: the size of the rendered HTML block.
virtualTimeBudget
intThe number of milliseconds to wait before deeming the page to be ready.
authServerWhitelist
stringA whitelist for Negotiate Auth servers, such as "*example.com".
proxyServer
stringA proxy server, such as "https://proxy-ip:proxy-port".
True if the drawn block is not empty, false otherwise.
Draws an HTML page provided by an URI on this GcBitmapGraphics at a specified position.
[Obsolete("Use the DrawHtml method override accepting GcHtmlBrowser as a parameter instead.")]
public static bool DrawHtml(this GcBitmapGraphics graphics, Uri htmlUri, float x, float y, HtmlToImageFormat format, out SizeF size, int virtualTimeBudget = 0, string authServerWhitelist = null, string proxyServer = null)
graphics
GcBitmapGraphicsThe target GcBitmapGraphics object.
htmlUri
System.UriThe URI specifying the source HTML page.
x
floatThe x-coordinate at which to draw the HTML block.
y
floatThe y-coordinate at which to draw the HTML block.
format
HtmlToImageFormatThe formatting attributes.
size
System.Drawing.SizeFOUT: the size of the rendered HTML block.
virtualTimeBudget
intThe number of milliseconds to wait before deeming the page to be ready.
authServerWhitelist
stringA whitelist for Negotiate Auth servers, such as "*example.com".
proxyServer
stringA proxy server, such as "https://proxy-ip:proxy-port".
True if the drawn block is not empty, false otherwise.