TransformLayer クラス
すべての子レイヤーへ同じ座標変換を適用して合成するレイヤーです。
名前空間: FloatSoda.Rendering.Layers
アセンブリ: FloatSoda.Rendering.dll
public class TransformLayer : ContainerLayer, ILayerobject ← ContainerLayer ← TransformLayer
実装するインターフェイス
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()
Transform
Section titled “Transform”子レイヤーの座標系へ適用する変換行列を取得または設定します。
public SKMatrix Transform { get; set; }プロパティの値
Section titled “プロパティの値”Clone()
Section titled “Clone()”変換行列と子レイヤーを保持する新しい変換レイヤーを作成します。
public override ILayer Clone()子レイヤーを再帰的に複製した新しい変換レイヤー。
Layout(LayerContext)
Section titled “Layout(LayerContext)”子レイヤーをレイアウトし、変換後の領域をこのレイヤーの描画境界として設定します。
public override void Layout(LayerContext context)パラメーター
Section titled “パラメーター”context LayerContext
子レイヤーのレイアウトに使用するコンテキスト。
Paint(LayerContext)
Section titled “Paint(LayerContext)”変換行列を子レイヤーの座標系へ適用して描画します。
public override void Paint(LayerContext context)パラメーター
Section titled “パラメーター”context LayerContext
変換後の子レイヤーを合成するキャンバスを保持するコンテキスト。
描画後にキャンバスの状態を復元するため、後続のレイヤーへ変換は引き継がれません。