AmbientLight クラス

定義

対象となるすべてのビジュアルを均等に照らすライト。

public ref class AmbientLight sealed : CompositionLight
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.LiftedContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AmbientLight final : CompositionLight
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
class AmbientLight final : CompositionLight
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.LiftedContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AmbientLight : CompositionLight
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
public sealed class AmbientLight : CompositionLight
Public NotInheritable Class AmbientLight
Inherits CompositionLight
継承
Object Platform::Object IInspectable CompositionObject CompositionLight AmbientLight
属性

_ambientLight = _compositor.CreateAmbientLight(); 
_ambientLight.Color = Colors.Yellow; 
_ambientLight.Targets.Add(root);          

注釈

AmbientLight は、 CompositionLight から派生した 4 種類のライトの 1 つです。

説明
AmbientLight シーン内のすべてのものが反射しているように見える非方向ライトを出力する光源。
DistantLight 1 つの方向に光を発する、無限に遠く離れた光源。
PointLight すべての方向に光を出す点光源。
SpotLight 光の内部コーンと外部コーンを生成する光源。

注意

ビジュアルは、2 つ以上の非アンビエント ライト (PointLight、SpotLight、または DistantLight) を対象にすることはできません。

プロパティ

Color

光の色。 アニメーション化可能。

Comment

CompositionObject に関連付ける文字列。

(継承元 CompositionObject)
Compositor

この CompositionObject の作成に使用するコンポジター

(継承元 CompositionObject)
DispatcherQueue

CompositionObject の DispatcherQueue を取得します。

(継承元 CompositionObject)
ExclusionsFromTargets

ライトの対象ではないビジュアルのコレクションを取得します。

(継承元 CompositionLight)
ImplicitAnimations

このオブジェクトにアタッチされている暗黙的なアニメーションのコレクション。

(継承元 CompositionObject)
Intensity

ライトの強度を取得または設定します。

IsEnabled

コンポジション ライトがオンかどうかを決定する値を取得または設定します。

(継承元 CompositionLight)
Properties

CompositionObject に関連付けられているプロパティのコレクション。

(継承元 CompositionObject)
Targets

ライトの対象となるビジュアルのコレクション。

(継承元 CompositionLight)

メソッド

Close()

CompositionObject を閉じ、システム リソースを解放します。

(継承元 CompositionObject)
Dispose()

アンマネージ リソースの解放またはリセットに関連付けられているアプリケーション定義のタスクを実行します。

(継承元 CompositionObject)
PopulatePropertyInfo(String, AnimationPropertyInfo)

アニメーション化できるプロパティを定義します。

(継承元 CompositionObject)
StartAnimation(String, CompositionAnimation)

アニメーションをオブジェクトの指定したプロパティに接続し、アニメーションを開始します。

(継承元 CompositionObject)
StartAnimation(String, CompositionAnimation, AnimationController)

アニメーションをオブジェクトの指定したプロパティに接続し、アニメーションを開始します。

(継承元 CompositionObject)
StartAnimationGroup(ICompositionAnimationBase)

アニメーション グループを開始します。

CompositionObject の StartAnimationGroup メソッドを使用すると、CompositionAnimationGroup を開始できます。 グループ内のすべてのアニメーションは、オブジェクトで同時に開始されます。

(継承元 CompositionObject)
StopAnimation(String)

指定したプロパティからアニメーションを切断し、アニメーションを停止します。

(継承元 CompositionObject)
StopAnimationGroup(ICompositionAnimationBase)

アニメーション グループを停止します。

(継承元 CompositionObject)
TryGetAnimationController(String)

指定したプロパティで実行されているアニメーションの AnimationController を返します。

(継承元 CompositionObject)

適用対象

こちらもご覧ください