Environment.WriteToFileRaster (Single, Double, String, ImageFormat, Boolean, Boolean) Method

Saves a raster image of the current viewport scene on disk.
Public Sub WriteToFileRaster( _ 
ByVal drawScaleFactor As Single, _ 
ByVal lineWeightFactor As Double, _ 
ByVal fileName As String, _ 
ByVal format As ImageFormat, _ 
ByVal drawBackground As Boolean, _ 
Optional ByVal hdwAcceleration As Boolean = true _ 
)
This language is not supported or no code example is available.
public void WriteToFileRaster( 
float drawScaleFactor
double lineWeightFactor
string fileName
ImageFormat format
bool drawBackground
bool hdwAcceleration = true 
)
This language is not supported or no code example is available.

Parameters

drawScaleFactor
float

The image scale

lineWeightFactor
double

The factor applied to the line weight of the wire entities

fileName
string

A string that contains the name of the file to which to save the raster image

format
ImageFormat

The file format of the raster image

drawBackground
bool

If false, the drawing of the background is skipped

hdwAcceleration
bool

If true, use the hardware acceleration (OpenGL only)

Remarks
 
The saved file will contain a 24-bit image.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition