QImageEncoderSettings¶
The
QImageEncoderSettings
class provides a set of image encoder settings. More…
Synopsis¶
Functions¶
def
__eq__
(other)def
__ne__
(other)def
codec
()def
encodingOption
(option)def
encodingOptions
()def
isNull
()def
quality
()def
resolution
()def
setCodec
(arg__1)def
setEncodingOption
(option, value)def
setEncodingOptions
(options)def
setQuality
(quality)def
setResolution
(arg__1)def
setResolution
(width, height)
Detailed Description¶
A image encoder settings object is used to specify the image encoder settings used by
QCameraImageCapture
. Image encoder settings are selected by constructing aQImageEncoderSettings
object, setting the desired properties and then passing it to aQCameraImageCapture
instance using the QCameraImageCapture::setImageSettings() function.QImageEncoderSettings imageSettings; imageSettings.setCodec("image/jpeg"); imageSettings.setResolution(1600, 1200); imageCapture->setEncodingSettings(imageSettings);See also
- class PySide2.QtMultimedia.QImageEncoderSettings¶
PySide2.QtMultimedia.QImageEncoderSettings(other)
- param other:
Constructs a null image encoder settings object.
Constructs a copy of the image encoder settings object
other
.
- PySide2.QtMultimedia.QImageEncoderSettings.codec()¶
- Return type:
str
Returns the image codec.
See also
- PySide2.QtMultimedia.QImageEncoderSettings.encodingOption(option)¶
- Parameters:
option – str
- Return type:
object
Returns the value of encoding
option
.See also
- PySide2.QtMultimedia.QImageEncoderSettings.encodingOptions()¶
- Return type:
Returns the all the encoding options as
QVariantMap
.See also
- PySide2.QtMultimedia.QImageEncoderSettings.isNull()¶
- Return type:
bool
Identifies if a image encoder settings object is uninitalized.
Returns true if the settings are null, and false if they are not.
- PySide2.QtMultimedia.QImageEncoderSettings.__ne__(other)¶
- Parameters:
- Return type:
bool
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.
- PySide2.QtMultimedia.QImageEncoderSettings.__eq__(other)¶
- Parameters:
- Return type:
bool
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.
- PySide2.QtMultimedia.QImageEncoderSettings.quality()¶
- Return type:
Returns the image encoding quality.
See also
- PySide2.QtMultimedia.QImageEncoderSettings.resolution()¶
- Return type:
Returns the resolution of the encoded image.
See also
- PySide2.QtMultimedia.QImageEncoderSettings.setCodec(arg__1)¶
- Parameters:
arg__1 – str
Sets the image
codec
.See also
- PySide2.QtMultimedia.QImageEncoderSettings.setEncodingOption(option, value)¶
- Parameters:
option – str
value – object
Set the encoding
option
value
.The supported set and meaning of encoding options are system and selected codec specific.
See also
- PySide2.QtMultimedia.QImageEncoderSettings.setEncodingOptions(options)¶
- Parameters:
options –
Replace all the encoding options with
options
.The supported set and meaning of encoding options are system and selected codec specific.
- PySide2.QtMultimedia.QImageEncoderSettings.setQuality(quality)¶
- Parameters:
quality –
EncodingQuality
Sets the image encoding
quality
.See also
- PySide2.QtMultimedia.QImageEncoderSettings.setResolution(arg__1)¶
- Parameters:
arg__1 –
PySide2.QtCore.QSize
Sets the
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.See also
- PySide2.QtMultimedia.QImageEncoderSettings.setResolution(width, height)
- Parameters:
width – int
height – int
Sets the
width
andheight
of the resolution of the encoded image.This is an overloaded function.
© 2022 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.