Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 /// <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;
 }