SnapshotConfig
-
class
SnapshotConfig() This class contains configuration properties for creating viewer snapshots.
Constructors
-
SnapshotConfig.constructor() - SnapshotConfig(width: number?, height: number?, layers:
SnapshotLayer?, viewKey:ViewKey?):SnapshotConfigCreates a new SnapshotConfig object.
Parameters
width: number = 0
height: number = 0
layers:
SnapshotLayer= SnapshotLayer.AllviewKey:
ViewKey= ViewKey.DefaultReturns:
SnapshotConfig
Properties
-
SnapshotConfig.height - height: number
Specifies the width of the resulting snapshot image. A value of 0 indicates the canvas width should be used. The default value is 0.
-
SnapshotConfig.layers - layers:
SnapshotLayerIndicates which layers to include in the snapshot. The default value is [[SnapshotLayer.All]].
-
SnapshotConfig.viewKey - viewKey:
ViewKeySpecifies which view the screenshot will be of. the default value is 0.
-
SnapshotConfig.width - width: number
Specifies the width of the resulting snapshot image. A value of 0 indicates the canvas width should be used. The default value is 0.