コンポジションモード

QPainter におけるコンポジション・モードの動作について説明する。

コンポジションの最も一般的な2つの形式は、ソースと ソースオーバーです。ソースは、不透明なオブジェクトをペイントデバイスに描画するために使用します。このモードでは、ソース内の各ピクセルが、デスティネーション内の対応するピクセルに置き換わります。SourceOver合成モードでは、ソース オブジェクトは透明で、デスティネーションの上に描画されます。

これらの標準モードに加えて、Qt は T. Porter と T. Duff によって定義されたコンポジションモードの完全なセットを定義しています。詳しくはQPainter のドキュメントを参照してください。

サンプルプロジェクト @ code.qt.io

© 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.