P
phil cunningham
I am new to C# and GDI+ so I may have missed a simple way of doing this.
I am trying to use the mouse to pick object up by seeing if the mouse position is Inside the object.
However, I am using the Transform method as follows
float scale=2;
Matrix x = new Matrix();
x.Scale(shift,shift);
g.Transform=x;
pl.Draw(g);
The objects appear twice the size on screen but the mouse position is in the Page system.
How can I transform the mouse position into World coordinates so that I can check it against the real objects
Thanks in advance for any help you can offer
Phil
I am trying to use the mouse to pick object up by seeing if the mouse position is Inside the object.
However, I am using the Transform method as follows
float scale=2;
Matrix x = new Matrix();
x.Scale(shift,shift);
g.Transform=x;
pl.Draw(g);
The objects appear twice the size on screen but the mouse position is in the Page system.
How can I transform the mouse position into World coordinates so that I can check it against the real objects
Thanks in advance for any help you can offer
Phil