合成模式
演示合成模式如何在QPainter 中工作。
最常见的两种合成形式是源和源上。源模式用于将不透明对象绘制到绘制设备上。在这种模式下,源中的每个像素都会替换目标中的相应像素。在SourceOver合成模式下,源对象是透明的,并绘制在目标对象之上。
除了这些标准模式外,Qt 还定义了由 T. Porter 和 T. Duff 定义的一整套合成模式。详情请参见QPainter 文档。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.