> ## 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::GetFixedColor 方法

> 傳回 LampArray 上的 Lamp 是否具有固定的硬體色彩，這表示它無法變更色彩，只會回應亮度變更。

# ILampInfo::GetFixedColor

傳回 Lamp 是否具有固定色彩。

## 語法

```cpp theme={null}
bool GetFixedColor(
    LampArrayColor* fixedColor)
```

### 參數

*fixedColor*   \_Out\_\
類型：LampArrayColor\*

指向 Lamp 所支援之固定色彩值的指標。如果此函式傳回 false，應忽略 fixedColor。

### 傳回值

類型：bool

如果 Lamp 具有固定色彩，則傳回 true，否則傳回 false。

## 需求

**標頭：** 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::GetBlueLevelCount 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getbluelevelcount.md)
- [ILampInfo::GetGreenLevelCount 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getgreenlevelcount.md)
- [ILampInfo::GetRedLevelCount 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getredlevelcount.md)
- [ILampInfo::GetNearestSupportedColor 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getnearestsupportedcolor.md)
- [ILampInfo::GetIndex 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getindex.md)
