Set the logical size.

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.