码迷,mamicode.com
首页 > Windows程序 > 详细

Windows Graphics Programming Win32 GDI and DirectDraw第六章疑问

时间:2014-07-16 20:12:18      阅读:321      评论:0      收藏:0      [点我收藏+]

标签:width   art   io   cti   re   c   

《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,感觉很疑惑。

Windows Graphics Programming Win32 GDI and DirectDraw第六章疑问,布布扣,bubuko.com

Windows Graphics Programming Win32 GDI and DirectDraw第六章疑问

标签:width   art   io   cti   re   c   

原文地址:http://www.cnblogs.com/licb/p/3837054.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!