Chinaunix首页 | 论坛 | 博客
  • 博客访问: 273157
  • 博文数量: 55
  • 博客积分: 2030
  • 博客等级: 大尉
  • 技术积分: 737
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-13 18:06
文章分类

全部博文(55)

文章存档

2011年(2)

2010年(7)

2009年(17)

2008年(29)

我的朋友

分类: C/C++

2008-07-13 20:13:19

QPainter draws in a "natural" coordinate system, but it is able to perform view and world transformations using the QMatrix class。 One advantage of using QImage as a paint device is that it is possible to guarantee the pixel exactness of any drawing operation in a platform-independent way. pixels can only be accessed through QPainter functions or by converting the QPixmap to a QImage. The most common way to read images is through QImage and QPixmap's constructors, or by calling the QImage::load() and QPixmap::load() functions.

The coordinate system is controlled by the QPainter class. Together with the QPaintDevice and QPaintEngine classes.  The default coordinate system of a paint device has its origin at the top-left corner.The mapping of the logical coordinates to the physical QPaintDevice coordinates are handled by 's transformation matrix, viewport and "window". The logical and physical coordinate systems coincide by default.If you need the same transformations over and over, you can also use objects and the () and () functions.

阅读(1248) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~