|
Transformation of Coordinate Spaces
A coordinate space is a planar space based on the Cartesian coordinate system. This system
provides a means of specifying the location of each point on a plane. It requires
two axes that are perpendicular and equal in length. The following illustration
shows a coordinate space.
The Microsoft® Win32® application programming interface (API) uses four coordinate spaces: world,
page, device, and physical device. Applications use world space to rotate,
shear, or reflect graphics output. World space measures 2^32 units high by 2^32
units wide. Page space (referred to as logical space in earlier versions of
Windows) also measures 2^32 units high by 2^32 units wide. Device space measures 2^27
units high by 2^27 units wide. Page space works with device space to provide
applications with device-independent units, such as millimeters and inches. The
Win32 API refers to both world space and page space as logical space. The final
coordinate space, physical device, usually refers to the client area of the
application's window; however, it can also include the entire desktop, a complete
window (including the frame, title bar, and menu bar), or a page of printer or
plotter paper. Physical device dimensions vary according to the dimensions set
by the display, printer, or plotter technology.
To depict output on a physical device, Windows copies (or maps) a rectangular
region from one coordinate space into the next coordinate space until finally
the output appears in its entirety on the physical device. Mapping begins in the
application's world space if the application has called the SetWorldTransform function; otherwise, mapping occurs in page space. As Windows copies each
point within the rectangular region from one space into another, it applies an
algorithm called a transformation. A transformation alters (or transforms) the size, orientation, and shape of objects that are
copied from one coordinate space into another. Although a transformation affects
an object as a whole, it is applied to each point, or to each line, in the
object.
The following illustration shows a typical transformation performed by using
the SetWorldTransform function.
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|