Viewport.RenderToBitmap (Rectangle, Size, Boolean, Boolean) Method
Returns an image of the current Model scene. The image can be scaled even to a poster size one.
Public Function RenderToBitmap( _
ByVal rectangle As Rectangle, _
ByVal bitmapSize As Size, _
ByVal drawBackground As Boolean, _
Optional ByVal hdwAcceleration As Boolean = true _
) As Bitmap
This language is not supported or no code example is available.
This language is not supported or no code example is available.
Parameters
-
rectangle
-
Rectangle
The rectangle of the viewport to capture in screen coordinates
-
bitmapSize
-
Size
The size in which the viewport will be fitted.
-
drawBackground
-
bool
If true, the drawing of the background is skipped
-
hdwAcceleration
-
bool
If true, use the hardware acceleration (OpenGL only)
Return Value
Bitmap
The 24-bit image.
.NET Framework
Supported in: 4.8