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.
[Visual Basic .NET] |
---|
Public Sub SaveToFileWithWidthAndDPI( _ ByVal Filename As String, _ ByVal CameraSnapshotFormat As AgEStkGraphicsCameraSnapshotFileFormat, _ ByVal WidthInInches As Double, _ ByVal DotsPerInch As Double _ ) |
[C#] |
---|
public void SaveToFileWithWidthAndDPI( string Filename, AgEStkGraphicsCameraSnapshotFileFormat CameraSnapshotFormat, double WidthInInches, double DotsPerInch ); |
[Managed C++] |
---|
public: void SaveToFileWithWidthAndDPI( String __gc ^ Filename, AgEStkGraphicsCameraSnapshotFileFormat CameraSnapshotFormat, double WidthInInches, double DotsPerInch ); |
[Unmanaged C++] |
---|
public: HRESULT SaveToFileWithWidthAndDPI( BSTR Filename, AgEStkGraphicsCameraSnapshotFileFormat CameraSnapshotFormat, double WidthInInches, double DotsPerInch ); |
[Java] |
---|
public void saveToFileWithWidthAndDPI( String Filename, AgEStkGraphicsCameraSnapshotFileFormat CameraSnapshotFormat, double WidthInInches, double DotsPerInch ); |
[Python - STK API ] |
---|
def SaveToFileWithWidthAndDPI(self, Filename:str, CameraSnapshotFormat:"AgEStkGraphicsCameraSnapshotFileFormat", WidthInInches:float, DotsPerInch:float) -> None: |
- Filename
- The filename of the snapshot.
- CameraSnapshotFormat
- The file format of the snapshot
- WidthInInches
- The desired width of the snapshot in inches.
- DotsPerInch
- The number of pixels per inch.