Obsolete Members for QImageWriter

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

公共函數

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

成員函數文檔編製

QString QImageWriter:: description () const

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

使用 QImageReader::text () 代替。

Returns the description of the image.

另請參閱 setDescription ().

float QImageWriter:: gamma () const

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

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

Returns the gamma level of the image.

另請參閱 setGamma ().

void QImageWriter:: setDescription (const QString & 描述 )

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

使用 setText () 代替。

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

內容對於 描述 depends on the image format.

另請參閱 description ().

void QImageWriter:: setGamma ( float gamma )

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

使用 QColorSpace conversion on the QImage 代替。

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.

另請參閱 gamma () 和 quality ().