Viewport.WriteToFileRaster (Single, String, ImageFormat, Boolean, Boolean) Method

Saves a raster image of the current viewport scene on disk.
Public Sub WriteToFileRaster( _ 
ByVal drawScale As Single, _ 
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 drawScale
string fileName
ImageFormat format
bool drawBackground
bool hdwAcceleration = true 
)
This language is not supported or no code example is available.

Parameters

drawScale
float

The image scale

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

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

.NET Framework

Supported in: 4.8

In this article

Definition