OpacityLayer クラス
すべての子レイヤーをひとまとまりとして、指定された不透明度で合成するレイヤーです。
名前空間: FloatSoda.Rendering.Layers
アセンブリ: FloatSoda.Rendering.dll
public class OpacityLayer : ContainerLayer, ILayerobject ← ContainerLayer ← OpacityLayer
実装するインターフェイス
Section titled “実装するインターフェイス”継承したメンバー
Section titled “継承したメンバー”ContainerLayer.Children, ContainerLayer.HasChildren, ContainerLayer.PaintBounds, ContainerLayer.Layout(LayerContext), ContainerLayer.LayoutChildren(LayerContext), ContainerLayer.Paint(LayerContext), ContainerLayer.Clone(), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
子レイヤーの合成に適用する不透明度を取得または設定します。
public byte Alpha { get; set; }プロパティの値
Section titled “プロパティの値”Clone()
Section titled “Clone()”不透明度と子レイヤーを保持する新しい不透明度レイヤーを作成します。
public override ILayer Clone()子レイヤーを再帰的に複製した新しい不透明度レイヤー。
Paint(LayerContext)
Section titled “Paint(LayerContext)”子レイヤーを一時レイヤーへ描画し、指定された不透明度で描画先へ合成します。
public override void Paint(LayerContext context)パラメーター
Section titled “パラメーター”context LayerContext
子レイヤーの合成先となるキャンバスを保持するコンテキスト。
合成後にキャンバスの状態を復元するため、後続のレイヤーへ不透明度は引き継がれません。