CameraSnapshot.SaveToFile Method (String, CameraSnapshotFileFormat, Double, Double) |
Saves a snapshot of the 3D window to the filename with the specified format at high resolution. Generally,
this is used to take snapshots for print media, such as posters, which is why the input parameters
are in terms of inches and dots per inch typically required by printers.
Namespace:
AGI.Foundation.Graphics.Advanced
Assembly:
AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.3.420.0 (24.3.420.0)
Syntaxpublic void SaveToFile(
string filename,
CameraSnapshotFileFormat cameraSnapshotFormat,
double widthInInches,
double dotsPerInch
)
Public Sub SaveToFile (
filename As String,
cameraSnapshotFormat As CameraSnapshotFileFormat,
widthInInches As Double,
dotsPerInch As Double
)
public:
void SaveToFile(
String^ filename,
CameraSnapshotFileFormat cameraSnapshotFormat,
double widthInInches,
double dotsPerInch
)
member SaveToFile :
filename : string *
cameraSnapshotFormat : CameraSnapshotFileFormat *
widthInInches : float *
dotsPerInch : float -> unit
Parameters
- filename
- Type: System.String
The filename of the snapshot. - cameraSnapshotFormat
- Type: AGI.Foundation.Graphics.Advanced.CameraSnapshotFileFormat
The file format of the snapshot - widthInInches
- Type: System.Double
The desired width of the snapshot in inches. - dotsPerInch
- Type: System.Double
The number of pixels per inch.
See Also