ColorObject.GetComponents 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| GetComponents() |
以新数组的形式返回此颜色的组件。 |
| GetComponents(Single[]) |
在提供的数组中复制此颜色的组件。 |
GetComponents()
以新数组的形式返回此颜色的组件。
[Android.Runtime.Register("getComponents", "()[F", "GetGetComponentsHandler", ApiSince=26)]
public virtual float[] GetComponents();
[<Android.Runtime.Register("getComponents", "()[F", "GetGetComponentsHandler", ApiSince=26)>]
abstract member GetComponents : unit -> single[]
override this.GetComponents : unit -> single[]
返回
Single[]
一个新的非 null 数组,其大小等于 #getComponentCount()
- 特性
注解
以新数组的形式返回此颜色的组件。 数组的最后一个元素始终是 alpha 分量。
Java文档android.graphics.Color.getComponents()。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
GetComponents(Single[])
在提供的数组中复制此颜色的组件。
[Android.Runtime.Register("getComponents", "([F)[F", "GetGetComponents_arrayFHandler", ApiSince=26)]
public virtual float[] GetComponents(float[]? components);
[<Android.Runtime.Register("getComponents", "([F)[F", "GetGetComponents_arrayFHandler", ApiSince=26)>]
abstract member GetComponents : single[] -> single[]
override this.GetComponents : single[] -> single[]
参数
- components
- Single[]
一个浮点数组,其大小必须至少 #getComponentCount()为 null
返回
Single[]
作为参数传递的数组(如果不是 null)或长度的新数组 #getComponentCount()
- 特性
注解
在提供的数组中复制此颜色的组件。 数组的最后一个元素始终是 alpha 分量。
Java文档android.graphics.Color.getComponents(float[])。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。