Changeing screen origin from top-left to bottom-left

M

Mark

I'm playing around with a graphics project. I have a form that contains two
toolstrips. One at the top running the width of the form from left to right
and the other on the left running the entire height from top to bottom.

I managed to draw a filled rectangle that fills the entire area between the
toolstrips, but the drawing starts at the top left hand side of the form and
disappears behind the Start bar.

What I would like to do is Draw the rectangle at the bottom left hand side
of the screen and stop to the top right. I have a reference book titled,
"Visual Basic 2005 Programmers Reference." Inside this book on page 553 there
is a subroutine called MapRectangles that maps real word coorodinates to
device coordinates. This routine also allowed you to invert the direction of
the Y-axis.

My problem is: My real-world coordinates and device coordinates have to be
plotted in the same area. Can anyone tell me how to do this?

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top