我在VC ++ GDI中遇到mapemode问题 [英] I have problems with the mapemode in VC++ GDI
问题描述
SetWindowExtEx () ;
SetViewportExtEx () ;
SetWindowOrgEx () ;
SetViewportOrgEx () ;
1.模式的y轴MM_TEXT来自顶部向下,而MM_ISOTROPIC则相反。所以我有一个问题,上面描述的y轴取向是指页面空间或设备或两者兼而有之?
2.SetWindowExtEx(),SetViewportExtEx(),can不仅要设置x轴和y轴的延伸,还要设置x和y方向。之后如何将页面坐标转换为设备坐标?象限mapps怎么样?这让我很困惑。
有人可以帮我解释一下吗?或者张贴说明两个坐标关系的图片?
PS:
我的英语很差,我的错
1. the y axis of mode MM_TEXT is from top to down,and that of MM_ISOTROPIC is opposite. so i have a question ,the y axis oriention described above is refer to the page space or device or both ?
2.SetWindowExtEx (),SetViewportExtEx (),can not only set extention for both x axis and y axis ,but also set the x and y oriention .how the to page coordinate translation into device coordinate after that ? And how the quadrant mapps ? That really confused me .
Can someone explain it for me ? Or post a picture illustrating the two coordinates relations ?
PS:
my english is poor ,my fault
推荐答案
我知道它很混乱,但你应该学习坐标空间和转换 [ ^ ],它可能以您自己的语言提供。
I know it is rather confusing but you should study Coordinate Spaces and Transformations[^], and it may well be available in your own language.
这篇关于我在VC ++ GDI中遇到mapemode问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!