Writes a visible part of the current CAD image to the disk as a raster image.
Namespace:
CADImport
Assembly: CADImport (in CADImport.dll)
Syntax
| Visual Basic (Declaration) |
Public Overridable Sub SaveToFile( _ ByVal FileName As String, _ ByVal ImgFormat As ImageFormat, _ ByVal curRect As DRect, _ Optional ByVal screenWidth As Integer = 640, _ Optional ByVal screenHeight As Integer = 480, _ Optional ByVal pixelFormat As PixelFormat = PixelFormat.Format32bppRgb _ ) |
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.
-
screenWidth
-
Type: int
-
screenHeight
-
Type: int
-
pixelFormat
-
Type: PixelFormat
PixelFormat of image
Platforms
Version Information
.NET Framework
Supported in: 2.0 - 4, NET8
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
See Also