ScreenShot

new Cesium.ScreenShot(viewer)

场景截图
Name Type Description
viewer Object optional 视景器对象

Methods

执行截图
Name Type Description
options Object optional opetions 具有如下属性:
Name Type Default Description
element Object optional Element元素对象
datatype String 'image/png' optional 图像数据类型,默认为image/png
name String "gwScreenshot.png" optional 图像名称,默认为gwScreenshot.png
size Number optional 图片尺寸最大值,根据场景尺寸的宽高比计算新尺寸,默认值为场景尺寸
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.