LP vs DP
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
What is the difference between LP and DP?.When do I have to use DPtoLP and LPtoDP function?. NSS
-
What is the difference between LP and DP?.When do I have to use DPtoLP and LPtoDP function?. NSS
The difference regards the sense of transformation between the device units and the logical units. 1) You use
LPtoDP
to map the coordinates of each point, or dimension of a size, from the device coordinate system into GDI’s logical coordinate system. This depends on the current mapping mode and on the settings of the origins and extents for the device’s window and viewport. 2) You useDPtoLP
to do the mapping from GDI’s logical coordinate system into the device coordinate system. SkyWalker -- modified at 3:30 Monday 10th October, 2005