Windows ing mode Summary 1

Source: Internet
Author: User

CDC: setviewportext

Virtual Csize Setviewportext ( Int CX, Int Cy );

Virtual Csize Setviewportext ( Size Size );

Return Value

The previous extents of the viewport asCsizeObject. When an error occurs, the X-and y-coordinates of the returnedCsizeObject are both set to 0.

Parameters

CX

Specifies the X-Extent of the viewport (in device units ).

Cy

Specifies the Y-Extent of the viewport (in device units ).

Size

Specifies the X-and y-extents of the viewport (in device units ).

Remarks sets the direction of X and Y axis coordinates and the range included in the coordinate system (in pixels)

Sets the X-and y-extents of the viewport of the device context. The viewport, Along with the device-context window, defines how GDI maps points in the logical coordinate system to points in the coordinate system of the actual device. in other words, they define how GDI converts logical coordinates into device coordinates.

When the following mapping modes are set, calltoSetmediawextAndSetviewportextAre ignored:

 

CDC: setmediawext

Virtual Csize Setmediawext ( Int CX, Int Cy );

Virtual Csize Setmediawext ( Size Size );

Return Value

The previous extents of the window (in logical units) asCsizeObject. If an error occurs, the X-and y-coordinates of the returnedCsizeObject are both set to 0.

Parameters

CX

Specifies the X-extent (in logical units) of the window.

Cy

Specifies the Y-extent (in logical units) of the window.

Size

Specifies the X-and y-extents (in logical units) of the window.

RemarksSet the logical unit of the coordinate system

Sets the X-and y-extents of the window associated with the device context.The window, along with the device-context viewport, defines how GDI maps points in the logical coordinate system to points in the device coordinate system.

When the following mapping modes are set, calltoSetmediawextAndSetviewportextFunctions are ignored:

  • Mm_hienglish

  • Mm_himetric

  • Mm_loenglish

  • Mm_lometric

  • Mm_text

  • Mm_twips

WhenMm_isotropicMode is set, an application must callSetmediawextMember function before callingSetviewportext.

 

CDC: setviewportorg

Virtual Cpoint Setviewportorg ( Int X, Int Y );

Virtual Cpoint Setviewportorg ( Point Point );

Return Value

The previous origin of the viewport (in device coordinates) asCpointObject.

Parameters

X

Specifies the X-coordinate (in device units) of the origin of the viewport. The value must be within the range of the device coordinate system.

Y

Specifies the Y-coordinate (in device units) of the origin of the viewport. The value must be within the range of the device coordinate system.

Point

Specifies the origin of the viewport. The values must be within the range of the device coordinate system. You can pass eitherPointStructure orCpointObject for this parameter.

Remarks

Sets the viewport origin of the device context.The viewport, along with the device-context window, defines how GDI maps points in the logical coordinate system to points in the coordinate system of the actual device. in other words, they define how GDI converts logical coordinates into device coordinates.

The viewport origin marks the point in the device coordinate system to which GDI maps the window origin,APoint in the logical coordinate system specified bySetw.worgMember function. GDI maps all other points by following the same process required to map the window origin to the viewport origin. for example, all points in a circle around the point at the window origin will be in a circle around the point at the viewport origin. similarly, all points in a line that passes through the window origin will be in a line that passes through the viewport origin.

 

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.