Writes a visible part of the current CAD image to the disk as a raster image.

Namespace: CADImport
Assembly: CADImport (in CADImport.dll)

Public Overridable Sub SaveToFile( _ 
ByVal FileName As String, _ 
ByVal ImgFormat As ImageFormat, _ 
ByVal curRect As DRect, _ 
ByVal rect As RectangleF, _ 
ByVal e As Graphics
)
This language is not supported or no code example is available.
public virtual void SaveToFile( 
string FileName
ImageFormat ImgFormat
DRect curRect
RectangleF rect
Graphics e 
)
This language is not supported or no code example is available.

Parameters

FileName

Type: string

A location on the disk where to save the image.

ImgFormat

Type: ImageFormat

A ImageFormat object specifying a format of the file to save.

curRect

Type: DRect

A DRect object specifying a size of the CADImage.

rect

Type: RectangleF

e

Type: Graphics

Windows NT 4.0, Windows 98, Windows XP, Windows Server 2003, Windows Vista; Windows Server 2008 R2, Windows 7, WIndows10

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0 - 4, NET6

.NET Framework Client Profile

Supported in: 4, 3.5 SP1, NET6