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