Beispiel #1
0
        public static PushedState PushSetTransform(this AP.IDrawingContextImpl context, A.Matrix matrix)
        {
            var oldMatrix = context.Transform;

            context.Transform = matrix;
            return(new PushedState(context, oldMatrix));
        }
Beispiel #2
0
 public PushedState(AP.IDrawingContextImpl context, A.Matrix matrix = default)
 {
     _context = context;
     _matrix  = matrix;
 }
Beispiel #3
0
 public static PushedState PushPostTransform(this AP.IDrawingContextImpl context, A.Matrix matrix)
 => PushSetTransform(context, context.Transform * matrix);