Board index » delphi » Delphi: Change graphics canvas scale automatically?

Delphi: Change graphics canvas scale automatically?

Hello all,

Is it possible to change the scaling on the Canvas coordinates so that
they refer to some number of pixels or some fractional number of
pixels instead of pixels?  Also, is it possible to move the origin to
the lower-left hand corner instead of the upper right-hand corner?

If I can use a Windows 3.1 GDI call for it, then how do I get the
current context value to pass the GDI call?

Thanks...

--
Mike Bazarewsky, mike...@griffy.nmt.edu

"Socorro: It's not the middle of nowhere but it has the same zip code."

 

Re:Delphi: Change graphics canvas scale automatically?


In article <1995Jun17.163900.9...@nmt.edu>, mike...@griffy.nmt.edu says...

Quote
>If I can use a Windows 3.1 GDI call for it, then how do I get the
>current context value to pass the GDI call?

Er, well, I can't help you out with the first problem, but getting the
handle of a canvas is no problem.  Just use the handle property. IE

BoolVal := LineTo(Form1.Canvas.Handle,X,Y);
---------
"Don't go around saying the world owes you a living;
the world owes you nothing; it was here first."
                Mark Twain
bd...@axionet.com

Other Threads