WhiteBalanceControl クラス

定義

キャプチャ デバイスでホワイト バランス設定を制御する機能を提供します。

public ref class WhiteBalanceControl sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class WhiteBalanceControl final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public sealed class WhiteBalanceControl
Public NotInheritable Class WhiteBalanceControl
継承
Object Platform::Object IInspectable WhiteBalanceControl
属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

注釈

WhiteBalanceControl を使用すると、アプリでデバイスのホワイト バランス設定を追加で制御できます。 SetPresetAsync を呼び出すことで、ColorTemperaturePreset 値のいずれかを使用できます。 または、SetValueAsync を呼び出して、Min と Max の間に特定のを設定します

デバイスでこのコントロールがサポートされているかどうかを確認する場合は、 WhiteBalanceControl.Supported を確認します。

デバイスが WhiteBalanceControl をサポートしていない場合でも、VideoCaptureDeviceWhiteBalance を使用して、ホワイト バランスの色温度の値を設定できます。

MediaCapture.VideoDeviceController を使用して、キャプチャ デバイスの WhiteBalanceControl にアクセスできます。

ホワイト バランスは、ケルビン度の色温度として指定されます。

FocusControl を使用する方法のガイダンスについては、「写真とビデオのキャプチャ用の手動カメラ コントロール」を参照してください。

プロパティ

Max

最大ホワイト バランス値を取得します。

Min

最小ホワイト バランス値を取得します。

Preset

色温度プリセットを取得します。

Step

ステップ値を取得します。

Supported

キャプチャ デバイスがホワイト バランス コントロールをサポートしているかどうかを示す値を取得します。

Value

色温度の値を取得します。

メソッド

SetPresetAsync(ColorTemperaturePreset)

色温度 プリセットを非同期に設定します。

SetValueAsync(UInt32)

色温度値を非同期に設定 します

適用対象

こちらもご覧ください