Open franzdevel opened 7 years ago
It seems that the parameters in Graphic.Transform have been accidentally swapped. The code reads:
Graphic.Transform
public Transform Transform { get { return Transform.StretchFillRect (ViewBox, new Rect (Point.Zero, Size)); } }
but should be:
public Transform Transform { get { return Transform.StretchFillRect (new Rect (Point.Zero, Size), ViewBox); } }
As a result, the canvas transformation applied by Graphic.Draw (which takes into account the Graphic.ViewBox) does not work correctly.
Graphic.Draw
Graphic.ViewBox
Ahhh, thank you. I need to write a test for this.
I'm not so sure if the parameters are backwards. Can you provide a test for this?
It seems that the parameters in
Graphic.Transform
have been accidentally swapped. The code reads:but should be:
As a result, the canvas transformation applied by
Graphic.Draw
(which takes into account theGraphic.ViewBox
) does not work correctly.