Beispiel #1
0
 protected double TransformX(double source)
 {
     if (CSTransform == null)
     {
         return(0);
     }
     return(CSTransform.Transform(new Point(source, 0)).X + AxisShift);
 }
Beispiel #2
0
 protected double TransformY(double source)
 {
     if (CSTransform == null)
     {
         return(0);
     }
     return(CSTransform.Transform(new Point(0, source)).Y + AxisShift);
 }
Beispiel #3
0
 private void TestDrawALine(DrawingContext drawingContext)
 {
     drawingContext.DrawLine(new Pen(new SolidColorBrush(Colors.Red), 1), CSTransform.Transform(new Point(0, 0)), CSTransform.Transform(new Point(80, 50)));
 }