Environment.RenderToBitmap (Size) Method

Returns an image of the current Environment scene. The image can be scaled even to a poster size one.
Public Function RenderToBitmap( _ 
ByVal bitmapSize As Size
) As Bitmap
This language is not supported or no code example is available.
public Bitmap RenderToBitmap( 
Size bitmapSize 
)
This language is not supported or no code example is available.

Parameters

bitmapSize
Size

The size in which the viewport will be fitted.

Return Value

Bitmap

The 24-bit image.

Remarks
 
To get a 32-bit image with transparent background set the BackgroundSettings.StyleMode to backgroundStyleType.None.

.NET Framework

Supported in: 4.8

In this article

Definition