Viewport.RenderToBitmap (RectangleF, Double, Boolean, Boolean) Method
Public Function RenderToBitmap( _
ByVal rectangle As RectangleF, _
ByVal drawScale As Double, _
ByVal drawBackground As Boolean, _
Optional ByVal hdwAcceleration As Boolean = true _
) As Bitmap
This language is not supported or no code example is available.
Parameters
- rectangle
- RectangleF
The rectangle of the viewport to capture in screen coordinates
- drawScale
- double
The bitmap scale
- drawBackground
- bool
If false, the drawing of the background is skipped
- hdwAcceleration
- bool
If true, use the hardware acceleration (OpenGL only)
Return Value
BitmapThe 24-bit image.
To get a 32-bit image with transparent background set the BackgroundSettings.StyleMode to backgroundStyleType.None.