Partager via


RggbChannelVector.GetComponent Method

Definition

Overloads

GetComponent(Color)

Get the component by the color channel index.

GetComponent(Int32)

GetComponent(Color)

Get the component by the color channel index.

[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

Parameters

colorChannel
Color

greater or equal to 0 and less than #COUNT

Returns

a floating point value (guaranteed to be finite)

Attributes

Exceptions

if colorChannel was out of range

Remarks

Get the component by the color channel index.

colorChannel must be one of #RED, #GREEN_EVEN, #GREEN_ODD, #BLUE.

Java documentation for android.hardware.camera2.params.RggbChannelVector.getComponent(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetComponent(Int32)

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

Parameters

colorChannel
Int32

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to