首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

用刷子画一个同样大小的长方形和椭圆,为啥椭圆右边和下边会多出一个像素?该如何处理

2012-04-25 
用刷子画一个同样大小的长方形和椭圆,为啥椭圆右边和下边会多出一个像素?Ellipse 和Rectangle矩形参数都一

用刷子画一个同样大小的长方形和椭圆,为啥椭圆右边和下边会多出一个像素?
Ellipse 和Rectangle矩形参数都一样, 为啥画出来的椭圆会比长方形右边和下边会多出一个像素?

[解决办法]
摘自MSDN
Rectangle:The extreme bottom and right edges of rectangle are not drawn because the bottom and right coordinates are treated as the width and height respectively of the rectangle instead of its edges.

热点排行