Document Solutions for PDF
GrapeCity.Documents.Html / GrapeCity.Documents.Drawing Namespace / GcBitmapGraphicsExt Class / DrawHtml Method / DrawHtml(GcBitmapGraphics,String,Single,Single,HtmlToImageFormat,SizeF,Int32,String,String) Method
The target GrapeCity.Documents.Imaging.GcBitmapGraphics object.
The HTML string to draw.
The x-coordinate at which to draw the HTML block.
The y-coordinate at which to draw the HTML block.
The formatting attributes.
OUT: the size of the rendered HTML block.
The number of milliseconds to wait before deeming the page to be ready.
A whitelist for Negotiate Auth servers, such as "*example.com".
A proxy server, such as "https://proxy-ip:proxy-port".

In This Topic
    DrawHtml(GcBitmapGraphics,String,Single,Single,HtmlToImageFormat,SizeF,Int32,String,String) Method
    In This Topic
    Draws an HTML string on this GrapeCity.Documents.Imaging.GcBitmapGraphics at a specified position.
    Syntax
    'Declaration
     
    Public Overloads Shared Function DrawHtml( _
       ByVal graphics As GcBitmapGraphics, _
       ByVal html As System.String, _
       ByVal x As System.Single, _
       ByVal y As System.Single, _
       ByVal format As HtmlToImageFormat, _
       ByRef size As System.Drawing.SizeF, _
       Optional ByVal virtualTimeBudget As System.Integer, _
       Optional ByVal authServerWhitelist As System.String, _
       Optional ByVal proxyServer As System.String _
    ) As System.Boolean
    public static System.bool DrawHtml( 
       GcBitmapGraphics graphics,
       System.string html,
       System.float x,
       System.float y,
       HtmlToImageFormat format,
       out System.Drawing.SizeF size,
       System.int virtualTimeBudget,
       System.string authServerWhitelist,
       System.string proxyServer
    )

    Parameters

    graphics
    The target GrapeCity.Documents.Imaging.GcBitmapGraphics object.
    html
    The HTML string to draw.
    x
    The x-coordinate at which to draw the HTML block.
    y
    The y-coordinate at which to draw the HTML block.
    format
    The formatting attributes.
    size
    OUT: the size of the rendered HTML block.
    virtualTimeBudget
    The number of milliseconds to wait before deeming the page to be ready.
    authServerWhitelist
    A whitelist for Negotiate Auth servers, such as "*example.com".
    proxyServer
    A proxy server, such as "https://proxy-ip:proxy-port".

    Return Value

    True if the drawn block is not empty, false otherwise.
    See Also