ColorObject.GetComponent(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳該顏色色彩空間定義範圍內指定分量的值(參見 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
價值介於0到4之間(含)
傳回
- 屬性
備註
回傳該顏色色彩空間定義範圍內指定分量的值(參見 ColorSpace#getMinValue(int) 和 ColorSpace#getMaxValue(int))。
若請求的元件索引為 #getComponentCount(),此方法回傳 alpha 元件,且範圍 \([0..1]\)。
Java 文件 android.graphics.Color.getComponent(int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。