The QImageEncoderSettings 類提供一組圖像編碼器設置。 更多...
| 頭: | #include <QImageEncoderSettings> |
| qmake: | QT += multimedia |
| QImageEncoderSettings () | |
| QImageEncoderSettings (const QImageEncoderSettings & other ) | |
| ~QImageEncoderSettings () | |
| QString | codec () const |
| QVariant | encodingOption (const QString & option ) const |
| QVariantMap | encodingOptions () const |
| bool | isNull () const |
| QMultimedia::EncodingQuality | quality () const |
| QSize | resolution () const |
| void | setCodec (const QString & codec ) |
| void | setEncodingOption (const QString & option , const QVariant & value ) |
| void | setEncodingOptions (const QVariantMap & options ) |
| void | setQuality (QMultimedia::EncodingQuality quality ) |
| void | setResolution (const QSize & resolution ) |
| void | setResolution (int width , int height ) |
| bool | operator!= (const QImageEncoderSettings & other ) const |
| QImageEncoderSettings & | operator= (const QImageEncoderSettings & other ) |
| bool | operator== (const QImageEncoderSettings & other ) const |
The QImageEncoderSettings 類提供一組圖像編碼器設置。
A image encoder settings object is used to specify the image encoder settings used by QCameraImageCapture . Image encoder settings are selected by constructing a QImageEncoderSettings object, setting the desired properties and then passing it to a QCameraImageCapture instance using the QCameraImageCapture::setImageSettings() function.
QImageEncoderSettings imageSettings; imageSettings.setCodec("image/jpeg"); imageSettings.setResolution(1600, 1200); imageCapture->setEncodingSettings(imageSettings);
另請參閱 QImageEncoderControl .
構造 null 圖像編碼器設置對象。
構造副本為圖像編碼器設置對象 other .
銷毀圖像編碼器設置對象。
返迴圖像編解碼器。
另請參閱 setCodec ().
返迴值為編碼 option .
另請參閱 setEncodingOption () 和 encodingOptions ().
返迴所有編碼選項按 QVariantMap .
另請參閱 encodingOption () 和 setEncodingOptions ().
Identifies if a image encoder settings object is uninitalized.
Returns true if the settings are null, and false if they are not.
返迴圖像編碼品質。
另請參閱 setQuality ().
返迴編碼圖像的分辨率。
另請參閱 setResolution ().
設置圖像 codec .
另請參閱 codec ().
設置編碼 option value .
The supported set and meaning of encoding options are system and selected codec specific.
另請參閱 encodingOption () 和 setEncodingOptions ().
Replace all the encoding options with options .
The supported set and meaning of encoding options are system and selected codec specific.
另請參閱 encodingOptions (), encodingOption (),和 setEncodingOption ().
設置圖像編碼 quality .
另請參閱 quality ().
設置 resolution 為編碼圖像。
空 QSize indicates the encoder should make an optimal choice based on what is available from the image source and the limitations of the codec.
另請參閱 resolution ().
設置 width and height of the resolution of the encoded image.
這是重載函數。
Determines if other is of equal value to a image encoder settings object.
Returns true if the settings objects are not of equal value, and false if they are of equal value.
賦值值 other to a image encoder settings object.
Determines if other is of equal value to a image encoder settings object.
Returns true if the settings objects are of equal value, and false if they are not of equal value.