首页 > 代码库 > Windows Graphics Programming Win32 GDI and DirectDraw第六章疑问
Windows Graphics Programming Win32 GDI and DirectDraw第六章疑问
《Windows Graphics Programming Win32 GDI and DirectDraw》6.1节中有这样的描述:
The Windows NT/2000 graphics engine uses signed fixed-point numbers to represent coordinates, having a 4-bit fraction part and a 28-bit signed integer part. Points with negative coordinates or coordinates beyond the height or width of the device surface are considered clipped. So the maximum physical device size is 227 by 227, or 0.88 mile by 0.88 mile in 2400 dots-per-inch (dpi) resolution.
我自己算的方法是:2^27 / 2400 / 1000 = 559240.55
作者给出的是0.88mile,感觉很疑惑。
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。