VisualizationOptions
介绍如何生成请求数据的 8 位 RGB 可视化图表。
JSON 表示法 |
{
"ranges": [
{
object (DoubleRange )
}
],
"paletteColors": [
string
],
"gamma": number,
"opacity": number
} |
字段 |
ranges[] |
object (DoubleRange )
如果存在,则指定要可视化的数据值范围。此范围的值将在生成的图片中映射到 0-255(黑到白),超出此范围的值将被钳制。可以为要可视化的每个波段指定一个范围,也可以指定一个范围来应用于所有波段。
|
paletteColors[] |
string
如果存在,则指定要作为调色板应用的 CSS 样式 RGB 颜色标识符序列。仅在可视化单个数据带时允许。
|
gamma |
number
如果存在,则指定要应用于图片的整体伽玛校正系数。
|
opacity |
number
如果存在,则指定要应用于图片的整体不透明度系数,范围为 0.0 到 1.0。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-06。
[null,null,["最后更新时间 (UTC):2025-03-06。"],[[["Visualizes data as an 8-bit RGB image by mapping data values to colors."],["Allows customization through specifying data ranges, color palettes (for single-band data), gamma correction, and opacity."],["Data ranges determine the mapping of values to a black-to-white scale, with values outside the range clamped."],["When visualizing a single band, a color palette can be used to assign specific colors to data values."],["Gamma correction and opacity factors can further adjust the visual appearance of the image."]]],["The provided information outlines parameters for creating an 8-bit RGB visualization. Key actions include specifying data value ranges via `ranges`, which map to a 0-255 scale. A color palette (`paletteColors`) can be set for single-band visualizations. `Gamma` adjusts overall image correction, and `opacity` controls transparency, with values from 0.0 to 1.0. These parameters allow control over how data is visually represented.\n"]]