Language

RggbChannelVector.GetComponent Method

Definition

Overloads

Name Description
GetComponent(Color)

Get the component by the color channel index.

GetComponent(Int32)

Gets the vector component for the specified color channel index.

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)

Gets the vector component for the specified color channel index.

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

Parameters

colorChannel
Int32

The channel index: 0 for red, 1 for green on even Bayer rows, 2 for green on odd Bayer rows, or 3 for blue.

Returns

The finite floating-point value of the selected component.

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