Qt3DRender::QDithering Class
class Qt3DRender::QDithering启用抖动。更多...
| 标题: | #include <qdithering.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| 在 QML 中: | Dithering |
| 继承自: | Qt3DRender::QRenderState |
| 状态: | 已弃用 |
该类已弃用。我们强烈建议不要在新代码中使用它。
公共函数
| QDithering(Qt3DCore::QNode *parent = nullptr) |
详细说明
Qt3DRender::QDithering 类可启用抖动处理。抖动处理通过向颜色值中添加噪声来随机化量化误差,从而防止最终图像中出现大面积的图案,例如色带。在渲染到颜色位深度较低的表面(如RGB565或RGBA4444)时,抖动处理最为有效。
成员函数文档
[explicit] QDithering::QDithering(Qt3DCore::QNode *parent = nullptr)
该构造函数会使用指定的parent 创建一个新的QDithering::QDithering 实例。
© 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.