InertiaM
Well-known member
I am trying to draw on the screen, with Y being positive from the bottom up - like a normal graph.
I can now draw what I need to. However, as expected, when I try and draw text at, for example (100, 100), the text is up the wrong way. How do I apply another transformation to temporarily flip the matrix back the correct way?
VB.NET:
Private mYFlip As New Matrix(1, 0, 0, -1, 0, 0)
Private Sub frmMain_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
With e.Graphics
.Transform = mYFlip
.ScaleTransform(0.43, 0.43)
.TranslateTransform(300, -1550)
'etc etc
End With
End Sub
I can now draw what I need to. However, as expected, when I try and draw text at, for example (100, 100), the text is up the wrong way. How do I apply another transformation to temporarily flip the matrix back the correct way?