Sur cette page

Qt3DRender::QDithering Class

class Qt3DRender::QDithering

Activer le dithering. En savoir plus...

En-tête : #include <qdithering.h>
CMake : find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake : QT += 3drender
En QML : Dithering
Hérite de : Qt3DRender::QRenderState
Statut : Obsolète

Cette classe est obsolète. Nous déconseillons fortement de l'utiliser dans du nouveau code.

Fonctions publiques

QDithering(Qt3DCore::QNode *parent = nullptr)

Description détaillée

Une classe de type « Qt3DRender::QDithering » active le dithering. Le dithering ajoute du bruit aux valeurs de couleur afin de randomiser les erreurs de quantification et d’éviter ainsi l’apparition de motifs à grande échelle dans l’image finale, tels que les bandes. Le dithering est particulièrement utile lors du rendu sur une surface présentant une faible profondeur de couleur, telle que RGB565 ou RGBA4444.

Documentation des fonctions membres

[explicit] QDithering::QDithering(Qt3DCore::QNode *parent = nullptr)

Le constructeur crée une nouvelle instance de ` QDithering::QDithering ` avec l'parent` spécifiée.

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