Writes a visible part of the current CAD image to the specified stream as a raster image.
Namespace:
CADImport
Assembly: CADImport (in CADImport.dll)
Syntax
| Visual Basic (Declaration) |
Public Overridable Sub SaveToStream( _ ByVal aSt As Stream, _ ByVal ImgFormat As ImageFormat, _ ByVal curRect As DRect, _ Optional ByVal screenWidth As Integer = 640, _ Optional ByVal screenHeight As Integer = 480 _ ) |
Parameters
-
aSt
-
Type: Stream
A stream, where to save an 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 CADImagein drawing coordinates.
-
screenWidth
-
Type: int
A bitmap's width
-
screenHeight
-
Type: int
A bitmap's height
Platforms
Version Information
.NET Framework
Supported in: 2.0 - 4, NET8
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
See Also