Obsolete Members for QImageReader

以下成員源於類 QImageReader 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(obsolete) float gamma () const
(obsolete) void setGamma (float gamma )

成員函數文檔編製

float QImageReader:: gamma () const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

使用 QImage::colorSpace () 和 QColorSpace::gamma () 代替。

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 被返迴。

該函數在 Qt 5.6 引入。

另請參閱 setGamma ().

void QImageReader:: setGamma ( float gamma )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

使用 QColorSpace conversion on the QImage 代替。

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 .

該函數在 Qt 5.6 引入。

另請參閱 gamma ().