|
|
|
and coordinate conversions
Abstract: My project dealt with calculating mathematical equations and graphing them onto the screen. GDI methods, such as LineTo and SetPixel use pixel coordinates for the drawing. I needed a way to easily convert between the pixel and Cartesian coordinate systems. Windows API provides different mapping modes and one of them allows you to set your own style. The width, height, and the origin of the window’s units may be specified. However, the scaling is limited to integers, and graphs usually require decimals with many digits of precision. Logon to read this entire article Or sign up for an account FREE! |
||||||||||||||||||||||||||||