> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ILampInfo::GetBlueLevelCount 方法

> 傳回 LampArray 上的 Lamp 可顯示的不同藍色通道強度層級數目，有助於挑選硬體可呈現的色彩。

# ILampInfo::GetBlueLevelCount

傳回 Lamp 可設定的藍色強度數目。

## 語法

```cpp theme={null}
uint32_t GetBlueLevelCount(
)
```

### 參數

此方法沒有參數。

### 傳回值

類型：uint32\_t

不同藍色層級的數目。

## 備註

如果 Lamp 具有固定色彩 (請參閱 [ILampInfo::GetFixedColor](/zh-TW/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getfixedcolor))，此方法將傳回 0。

## 需求

**標頭：** LampArray.h

**程式庫：** xgameplatform.lib

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[照明 API 概觀](/zh-TW/build/core-features/common/lighting/gc-lighting-toc)\
[ILampInfo](/zh-TW/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo)


## Related topics

- [ILampInfo::GetNearestSupportedColor 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getnearestsupportedcolor.md)
- [ILampInfo::GetGainLevelCount 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getgainlevelcount.md)
- [ILampInfo::GetRedLevelCount 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getredlevelcount.md)
- [ILampInfo::GetGreenLevelCount 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getgreenlevelcount.md)
- [ILampInfo::GetIndex 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getindex.md)
