views:

20

answers:

0

I'm building a very simple vector graphics application using GDI+. Obviously I don't want the default measurement unit to be the pixel, so right now I'm using a complicated system that involves a variable called the "scale factor" and a point called the "offset". Every time I want to draw anything, I have to multiply by the scale factor and then add the offset.

What I want to know is, can I use the ScaleTransform() and TranslateTransform() functions to do this? e.g. to translate my real-world coordinates into on-screen dimensions, without all the effort that is otherwise involved? And I also need to implement zoom and pan functions, which are obviously in the same deparment.

Could you point me to some good documentation on this? (MSDN library always seems to assume that I already know what I'm talking about.)