In This Topic
Renders the current page to an existing
GrapeCity.Documents.Imaging.GcBitmap and crops.
Syntax
'Declaration
Public Sub RenderAndCrop( _
ByVal As GcBitmap, _
Optional ByVal As PngOptions, _
Optional ByVal As System.Nullable(Of Color), _
Optional ByVal As System.Integer, _
Optional ByVal As System.Integer, _
Optional ByVal As System.Integer, _
Optional ByVal As System.Integer _
)
public void RenderAndCrop(
GcBitmap ,
PngOptions ,
System.Nullable<Color> ,
System.int ,
System.int ,
System.int ,
System.int
)
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