语言

RggbChannelVector.GetComponent 方法

定义

重载

名称 说明
GetComponent(Color)

按颜色通道索引获取组件。

GetComponent(Int32)

获取指定颜色通道索引的向量组件。

GetComponent(Color)

按颜色通道索引获取组件。

[Android.Runtime.Register("getComponent", "(I)F", "")]
public float GetComponent(Android.Graphics.Color colorChannel);
[<Android.Runtime.Register("getComponent", "(I)F", "")>]
member this.GetComponent : Android.Graphics.Color -> single

参数

colorChannel
Color

大于或等于 0 或小于 #COUNT

返回

浮点值(保证为有限)

特性

例外

如果 colorChannel 范围不足

注解

按颜色通道索引获取组件。

colorChannel必须是其中一个#RED, #GREEN_EVEN, #GREEN_ODD。 #BLUE

Java文档android.hardware.camera2.params.RggbChannelVector.getComponent(int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

GetComponent(Int32)

获取指定颜色通道索引的向量组件。

public float GetComponent(int colorChannel);
member this.GetComponent : int -> single

参数

colorChannel
Int32

通道索引:0 表示红色,1 表示偶数拜尔行为绿色,2 表示奇数拜尔行为绿色,蓝色为 3。

返回

所选组件的有限浮点值。

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于