CDC: setmapmode
Virtual int setmapmode (INT nmapmode );
Mm_anisotropic |
Converts a logical unit to any unit on any zooming axis. Setting the mming mode to mm_anisotropic does not change the setting of the current window or view port. To change the unit, direction, and scaling, call the setviewportext and setwindowtext member functions. |
Mm_isotropic |
The logical unit is converted to any unit with a peering scaling axis. That is, Unit 1 on the X axis is equal to Unit 1 on the Y axis. You can use the setviewportext and setwindowtext member functions to specify the required unit and axis direction. The GDI correction ensures that the sizes of X and Y axes are consistent. |
CDC: setviewportext
Virtual csize setviewportext (int cx, int CY );
Virtual csize setviewportext (size );
Return Value:
The csize object is the previous value of view port expansion. When an error occurs, the X and Y coordinates returned by the csize object are set to 0.
Parameters:
CX |
Specify the X extension (device unit) of the view port ). |
Cy |
Specify the y extension (device unit) of the view port ). |
Size |
Specify the X and Y extensions (device units) of the view ports ). |
Note:
Set X and Y extensions for view port extensions. The view port and device context window shows how GDI maps points in logical coordinates to actual device coordinates. In other words, they demonstrate how GDI converts logical coordinates to device coordinates. When the following ing mode is set, the call to setjavaswext and setviewportext will be overwritten.
· |
Mm_hienglish |
· |
Mm_himetric |
· |
Mm_loenglish |
· |
Mm_lometric |
· |
Mm_text |
· |
Mm_twips |
When mm_isotropic is set, the application must call the setviewportext function before calling setjavaswext.
CDC: setmediawext
Virtual csize setwindowext (int cx, int CY );
Virtual csize setwindowext (size );
Return Value: csize object, which is the previous value of window extension. When an error occurs, the X and Y coordinates returned by the csize object are set to 0.
Parameters:
CX |
Specify the X extension (logical unit) of the view port ). |
Cy |
Specify the y extension (logical unit) of the view port ). |
Size |
Specify the X and Y extensions of the view ports (logical unit ). |
Note:
Set the X and Y extensions of Window Extensions. The window and device context window demonstrate how GDI maps points in logical coordinates to actual device coordinates.
In other words, they demonstrate how GDI converts logical coordinates to device coordinates.
When the following ing mode is set, the call to setjavaswext and setviewportext will be overwritten.
· |
Mm_hienglish |
· |
Mm_himetric |
· |
Mm_loenglish |
· |
Mm_lometric |
· |
Mm_text |
· |
Mm_twips |
when mm_isotropic is set, the application must call the setviewportext function before calling the setjavaswext member function.