AGI STK Graphics 11 Send comments on this topic.
SaveToFileWithWidthAndDPI Method (IAgStkGraphicsCameraSnapshot)
See Also 
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.





Description

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.

Syntax

[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
);

[Java]
public  saveToFileWithWidthAndDPI(
String Filename,
AgEStkGraphicsCameraSnapshotFileFormat CameraSnapshotFormat,
double WidthInInches,
double DotsPerInch
);

[Unmanaged C++]
public: HRESULT SaveToFileWithWidthAndDPI(
BSTR Filename,
AgEStkGraphicsCameraSnapshotFileFormat CameraSnapshotFormat,
double WidthInInches,
double DotsPerInch
);

Parameters

Filename
The filename of the snapshot.
CameraSnapshotFormat
Member Value Description
eStkGraphicsCameraSnapshotFileFormatBmp 0 BMP file format
eStkGraphicsCameraSnapshotFileFormatRas 1 RAS file format
eStkGraphicsCameraSnapshotFileFormatTiff 2 TIFF file format
eStkGraphicsCameraSnapshotFileFormatJpeg 3 JPEG file format
The file format of the snapshot
WidthInInches
The desired width of the snapshot in inches.
DotsPerInch
The number of pixels per inch.

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1