QImageEncoderSettings class provides a set of image encoder settings. 更多...
头: | #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 |
QImageEncoderSettings class provides a set of image encoder settings.
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 .
Constructs a null image encoder settings object.
Constructs a copy of the image encoder settings object other .
Destroys a image encoder settings object.
返回图像编解码器。
另请参阅 setCodec ().
Returns the value of encoding option .
另请参阅 setEncodingOption () 和 encodingOptions ().
Returns the all the encoding options as 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.
Returns the image encoding quality.
另请参阅 setQuality ().
Returns the resolution of the encoded image.
另请参阅 setResolution ().
设置图像 codec .
另请参阅 codec ().
Set the encoding 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 ().
Sets the image encoding quality .
另请参阅 quality ().
设置 resolution of the encoded image.
An empty 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.
Assigns the value of 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.