DS.Documents.Html Assembly / GrapeCity.Documents.Html Namespace / HtmlPage Class / RenderAndCrop Method
The destination GrapeCity.Documents.Imaging.GcBitmap. Note that its current content will be lost.
The set of parameters for the output image.
The color to be treated as the background to crop. If not set, the color of the bottom right pixel of the image is taken as the background.
The width of the left margin, in pixels.
The height of the top margin, in pixels.
The width of the right margin, in pixels.
The height of the bottom margin, in pixels.

In This Topic
RenderAndCrop Method
In This Topic
Renders the current page to an existing GrapeCity.Documents.Imaging.GcBitmap and crops.
Syntax
'Declaration
 
Public Sub RenderAndCrop( _
   ByVal bitmap As GcBitmap, _
   Optional ByVal options As PngOptions, _
   Optional ByVal backColor As System.Nullable(Of Color), _
   Optional ByVal leftMargin As System.Integer, _
   Optional ByVal topMargin As System.Integer, _
   Optional ByVal rightMargin As System.Integer, _
   Optional ByVal bottomMargin As System.Integer _
) 
 

Parameters

bitmap
The destination GrapeCity.Documents.Imaging.GcBitmap. Note that its current content will be lost.
options
The set of parameters for the output image.
backColor
The color to be treated as the background to crop. If not set, the color of the bottom right pixel of the image is taken as the background.
leftMargin
The width of the left margin, in pixels.
topMargin
The height of the top margin, in pixels.
rightMargin
The width of the right margin, in pixels.
bottomMargin
The height of the bottom margin, in pixels.
See Also