ImageMaterialProperty

new Cesium.ImageMaterialProperty(options)

映射到图像 MaterialMaterialProperty 统一。
Name Type Description
options object optional 对象,具有以下属性:
Name Type Default Description
image Property | string | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement optional 指定 Image、URL、Canvas 或 Video 的属性。
repeat Property | Cartesian2 new Cartesian2(1.0, 1.0) optional A Cartesian2 指定图像在每个方向上重复次数的属性。
color Property | Color Color.WHITE optional 应用于图像的颜色
transparent Property | boolean false optional 当图像具有透明度时(例如,当 png 具有透明部分时),设置为 true

Members

获取或设置Color 属性,用于指定应用于图像的所需颜色。
Default Value: 1.0
获取此属性的定义发生更改时引发的事件。 如果对 getValue 的调用会返回 getValue,则认为定义已更改 同一时间的不同结果。
获取或设置指定要使用的 Image、URL、Canvas 或 Video 的属性。
获取一个值,该值指示此属性是否为 constant。 将属性视为 常量(如果 getValue 始终为当前定义返回相同的结果)。
获取或设置Cartesian2 指定图像在每个方向上重复次数的属性。
Default Value: new Cartesian2(1, 1)
获取或设置指定图像是否具有透明度的布尔属性
Default Value: 1.0

Methods

将此属性与提供的属性进行比较,并返回 true,否则为 false
Name Type Description
other Property optional 另一个属性。
Returns:
true如果左和右相等,否则false
在提供的时间获取 Material 类型。
Name Type Description
time JulianDate 检索类型的时间。
Returns:
材质的类型。

getValue(time, result)object

获取属性在提供的时间的值。
Name Type Default Description
time JulianDate JulianDate.now() optional 检索值的时间。如果省略,则使用当前系统时间。
result object optional 要将值存储到的对象,如果省略,则创建并返回一个新实例。
Returns:
修改后的结果参数或者,如果未提供 result 参数,则为新实例。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.