Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot Namespace / Viewport Class / RenderToBitmap Method / RenderToBitmap(RectangleF,Double,Double,Boolean,Boolean) Method
The rectangle of the viewport to capture in screen coordinates
The bitmap scale
The factor applied to the line weight of the wire entities
If false, the drawing of the background is skipped
If true, use the hardware acceleration (OpenGL only)

In This Topic
    RenderToBitmap(RectangleF,Double,Double,Boolean,Boolean) Method
    In This Topic
    Returns an image of the current ViewportLayout scene. The image can be scaled even to a poster size one.
    Syntax
    'Declaration
     
    Public Overloads Function RenderToBitmap( _
       ByVal rectangle As RectangleF, _
       ByVal drawScale As Double, _
       ByVal lineWeightFactor As Double, _
       ByVal drawBackground As Boolean, _
       Optional ByVal hdwAcceleration As Boolean _
    ) As Bitmap
    public Bitmap RenderToBitmap( 
       RectangleF rectangle,
       double drawScale,
       double lineWeightFactor,
       bool drawBackground,
       bool hdwAcceleration
    )

    Parameters

    rectangle
    The rectangle of the viewport to capture in screen coordinates
    drawScale
    The bitmap scale
    lineWeightFactor
    The factor applied to the line weight of the wire entities
    drawBackground
    If false, the drawing of the background is skipped
    hdwAcceleration
    If true, use the hardware acceleration (OpenGL only)

    Return Value

    The 24-bit image.
    Remarks
    To get a 32-bit image with transparent background set the devDept.Graphics.BackgroundSettings.StyleMode to devDept.Graphics.backgroundStyleType.None.
    See Also