Hi People,
I have a graphics problem. I have a diagram that is stored with all of
its X,Y coordinates having an origin of Bottom right corner, when I
display the diagram I want it with the origin to be in the bottom left
corner.
After moving the origin from bottom right to bottom left I would also
like to scale the diagram and translate the diagram to somewhere near
the middle of the screen.
Since the GDI uses an origin of top left I presume I need to do a
double tranformation, something like this;
Matrix mx = new Matrix(1,0,0,-1,0,this.ClientSize.Height);
e.Graphics.Transform=mx;
and
Matrix mx = new Matrix(-1,0,0,1,this.ClientSize.Width,0);
e.Graphics.Transform=mx;
however, I dont know the syntax of how to do this.
I do know you can combine a transform with a translate by;
Matrix mx = new Matrix(1,0,0,-1,0,this.ClientSize.Height);
Matrix mx1=mx.Clone();
mx1.Translate(50,30);
e.Graphics.Transform=mx1;
But doing two transforms seems beyond me.
Thanx in advance for any advice
Gary
PS I have found the site http://www.bobpowell.net/faqmain.htm so far