次の方法で共有


ColorObject.GetComponent(Int32) メソッド

定義

この色の色空間で定義されている範囲内の指定したコンポーネントの値を返します (参照 ColorSpace#getMinValue(int) および ColorSpace#getMaxValue(int)参照)。

[Android.Runtime.Register("getComponent", "(I)F", "GetGetComponent_IHandler", ApiSince=26)]
public virtual float GetComponent (int component);
[<Android.Runtime.Register("getComponent", "(I)F", "GetGetComponent_IHandler", ApiSince=26)>]
abstract member GetComponent : int -> single
override this.GetComponent : int -> single

パラメーター

component
Int32

戻り値

属性

注釈

この色の色空間で定義されている範囲内の指定したコンポーネントの値を返します (参照 ColorSpace#getMinValue(int) および ColorSpace#getMaxValue(int)参照)。

要求されたコンポーネント インデックスが指定されている場合、このメソッドは #getComponentCount()常に範囲 \([0..1]\) のアルファ コンポーネントを返します。

の Java ドキュメントandroid.graphics.Color.getComponent(int)

このページの一部は、Android オープンソース プロジェクトによって作成および共有され、クリエイティブ コモンズ 2.5 属性ライセンスに記載されている条件に従って使用される作業に基づく変更です。

適用対象