public TransformScope(StateScope scope, ref Matrix transform, bool overrideTransform) : base(scope) { Canvas2D canvas = ReferredCanvas; canvas.PushTransform(); if (overrideTransform) { canvas.SetTransform(ref transform); } else { canvas.ApplyTransformBefore(ref transform); } }
/// <summary> /// Initializes a <see cref="StateScope"/> with a previous scope. /// </summary> /// <param name="prevScope">The previous scope in scope chain.</param> protected StateScope(StateScope prevScope) { _prevScope = prevScope; }