DioDocs for PDF
RenderAndCrop メソッド

GrapeCity.Documents.Html > GrapeCity.Documents.Html 名前空間 > HtmlPage クラス : RenderAndCrop メソッド
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.
Renders the current page to an existing GrapeCity.Documents.Imaging.GcBitmap and crops.
シンタックス
'宣言
 
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 _
) 
public void RenderAndCrop( 
   GcBitmap bitmap,
   PngOptions options,
   System.Nullable<Color> backColor,
   System.int leftMargin,
   System.int topMargin,
   System.int rightMargin,
   System.int bottomMargin
)

パラメータ

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.
参照

HtmlPage クラス
HtmlPage メンバ