您的位置:首页 > 其它

QImage,QPixmap的,QBitmap,QPicture的区别

2013-03-21 17:19 357 查看
Qt provides four classes for handling image data: QImage, QPixmap, QBitmap and QPicture.



Qt提供了4种类型类操作图像数据:QImage,QPixmap的,QBitmap和QPicture。

[b]QImage is designed and optimized for I/O,
[b]and for direct pixel access and manipulation,
[/b]

[/b]

QImage是为[b]I /
O
设计和优化的,为了直接的像素访问和操作

[/b]

while QPixmap is designed and optimized for showing images on screen.
[b]QBitmap is only

[/b]

[b]然而[b]QPixmap是为在屏幕上现实图片设计和优化的,[b]QBitmap只是是继承[b][b]QPixmap[/b][/b][/b]

[/b][/b]

[b]a convenience class that inherits QPixmap,
ensuring a depth of 1. The isQBitmap() function

[/b]

的一个易使用的类,保证了深度为1,[b] isQBitmap()
函数当对象是真的bitmap返回true

[/b]

returns true if a QPixmap object is really a bitmap, otherwise returns false. Finally, the QPicture

否则反悔false,最后[b] QPicture

[/b]

class is a paint device that records and replays QPainter commands.

[b]QPicture类是绘制设备,主要用来记录和回放QPainter命令

[/b]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: