Modalità di composizione
illustra il funzionamento delle modalità di composizione in QPainter.

Le due forme più comuni di composizione sono Source e SourceOver. La modalità Source viene utilizzata per disegnare oggetti opachi su un dispositivo di disegno. In questa modalità, ogni pixel della sorgente sostituisce il pixel corrispondente nella destinazione. Nella modalità di composizione SourceOver, l’oggetto sorgente è trasparente e viene disegnato sopra la destinazione.
Oltre a queste modalità standard, Qt definisce l’insieme completo delle modalità di composizione secondo la definizione di T. Porter e T. Duff. Per ulteriori dettagli, consultare la documentazione di QPainter.
© 2026 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.