Document Solutions for Imaging
GrapeCity.Documents.Html / GrapeCity.Documents.Html Namespace / GcHtmlRenderer Class / RenderToPng Method / RenderToPng(Stream,PngSettings) Method
The destination stream.
The set of parameters for the output image.

In This Topic
    RenderToPng(Stream,PngSettings) Method
    In This Topic
    Creates a PNG image from the source HTML and saves it to a specified stream.
    Syntax
    'Declaration
     
    Public Overloads Function RenderToPng( _
       ByVal outputStream As System.IO.Stream, _
       Optional ByVal settings As PngSettings _
    ) As System.Boolean
    public System.bool RenderToPng( 
       System.IO.Stream outputStream,
       PngSettings settings
    )

    Parameters

    outputStream
    The destination stream.
    settings
    The set of parameters for the output image.

    Return Value

    True if PNG was successfully saved; otherwise, false.
    See Also