Obsolete Members for QImageReader
The following members of class QImageReader are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
Member Function Documentation
float QImageReader::gamma() const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Use QImage::colorSpace() and QColorSpace::gamma() instead.
Returns the gamma level of the decoded image. If setGamma() has been called and gamma correction is supported it will return the gamma set. If gamma level is not supported by the image format, 0.0
is returned.
This function was introduced in Qt 5.6.
See also setGamma().
void QImageReader::setGamma(float gamma)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Use QColorSpace conversion on the QImage instead.
This is an image format specific function that forces images with gamma information to be gamma corrected to gamma. For image formats that do not support gamma correction, this value is ignored.
To gamma correct to a standard PC color-space, set gamma to 1/2.2
.
This function was introduced in Qt 5.6.
See also gamma().
© 2024 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.