Obsolete Members for QImageWriter

The following members of class QImageWriter are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions

(obsolete) QString description() const
(obsolete) float gamma() const
(obsolete) void setDescription(const QString &description)
(obsolete) void setGamma(float gamma)

Member Function Documentation

QString QImageWriter::description() const

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Use QImageReader::text() instead.

Returns the description of the image.

See also setDescription().

float QImageWriter::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 image.

See also setGamma().

void QImageWriter::setDescription(const QString &description)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Use setText() instead.

This is an image format specific function that sets the description of the image to description. For image formats that do not support setting the description, this value is ignored.

The contents of description depends on the image format.

See also description().

void QImageWriter::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 sets the gamma level of the image to gamma. For image formats that do not support setting the gamma level, this value is ignored.

The value range of gamma depends on the image format. For example, the "png" format supports a gamma range from 0.0 to 1.0.

See also gamma() and quality().

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