网站首页  词典首页

请输入您要查询的函数:

 

术语 setworldtransform
释义 SetWorldTransform
语法:
BOOL SetWorldTransform(
__in HDC hdc,
__in const XFORM *lpXform
);
SetWorldTransform功能
该SetWorldTransform函数设置了一个二维线性变换之间的世界空间和页面空间指定的设备上下文。这种转变可以用来缩放,旋转,剪切,或翻译图形输出。
参数
hdc [in]
一个句柄,设备上下文。
lpXform [in]
一个对的XForm结构,它包含的转换数据指针。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
对于任何坐标(x,y)在世界空间的坐标变换在页面空间(X',Y键)可以通过以下方法确定:
x'= X信息* eM11 + y * eM21 +能谱,
Y键= X信息* eM12 + y * eM22 +伊迪,
其中变换矩阵的代表是以下内容:
| eM11 eM12 0 |
| eM21 eM22 0 |
|能谱伊迪1 |
此函数使用逻辑单位。
改造世界,通常被用来规模或旋转设备无关的方式合乎逻辑的图像。
默认世界变革是零矩阵所抵消。
该SetWorldTransform函数将失败,除非给定设备上下文图形模式已成立由先前调用SetGraphicsMode功能GM_ADVANCED。同样,不可能重置设备上下文的GM_COMPATIBLE的默认模式图形模式,除非世界的改造已被重置为第一次通过调用默认标识改造SetWorldTransform或ModifyWorldTransform。
实例
有关示例,请参阅使用空间和坐标转换。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
坐标空间和转换概述
坐标空间与变换函数
GetWorldTransform
ModifyWorldTransform
SetGraphicsMode
SetMapMode
SetViewportExtEx
SetViewportOrgEx
SetWindowExtEx
SetWindowOrgEx
的XForm
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SetWorldTransform Function
The SetWorldTransform function sets a two-dimensional linear transformation between world space and page space for the specified device context. This transformation can be used to scale, rotate, shear, or translate graphics output.
Syntax
BOOL SetWorldTransform(
__in HDC hdc,
__in const XFORM *lpXform
);
Parameters
hdc [in]
A handle to the device context.
lpXform [in]
A pointer to an XFORM structure that contains the transformation data.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
For any coordinates (x, y) in world space, the transformed coordinates in page space (x', y') can be determined by the following algorithm:
x' = x * eM11 + y * eM21 + eDx,
y' = x * eM12 + y * eM22 + eDy,
where the transformation matrix is represented by the following:
| eM11 eM12 0 |
| eM21 eM22 0 |
| eDx eDy 1 |
This function uses logical units.
The world transformation is usually used to scale or rotate logical images in a device-independent way.
The default world transformation is the identity matrix with zero offset.
The SetWorldTransform function will fail unless the graphics mode for the given device context has been set to GM_ADVANCED by previously calling the SetGraphicsMode function. Likewise, it will not be possible to reset the graphics mode for the device context to the default GM_COMPATIBLE mode, unless the world transformation has first been reset to the default identity transformation by calling SetWorldTransform or ModifyWorldTransform .
Examples
For an example, see Using Coordinate Spaces and Transformations .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Coordinate Spaces and Transformations Overview
Coordinate Space and Transformation Functions
GetWorldTransform
ModifyWorldTransform
SetGraphicsMode
SetMapMode
SetViewportExtEx
SetViewportOrgEx
SetWindowExtEx
SetWindowOrgEx
XFORM
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145104(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:22:26