Environment.RenderToBitmap (Rectangle, Double, Double, Boolean, Boolean) Method

Returns an image of the current Environment scene of the active viewport. The image can be scaled even to a poster size one.
Public Function RenderToBitmap( _ 
ByVal rectangle As Rectangle, _ 
ByVal drawScaleFactor As Double, _ 
ByVal lineWeightFactor 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.
public Bitmap RenderToBitmap( 
Rectangle rectangle
double drawScaleFactor
double lineWeightFactor
bool drawBackground
bool hdwAcceleration = true 
)
This language is not supported or no code example is available.

Parameters

rectangle
Rectangle

The rectangle of the viewport to capture in screen coordinates (zero on top)

drawScaleFactor
double

The bitmap scale factor

lineWeightFactor
double

The factor applied to the line weight of the wire entities

drawBackground
bool

If false, the drawing of the background is skipped

hdwAcceleration
bool

If true, use the hardware acceleration (OpenGL only)

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