QImageEncoderSettingsclass provides a set of image encoder settings. 更多 …
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)
A image encoder settings object is used to specify the image encoder settings used by
QCameraImageCapture. Image encoder settings are selected by constructing aQImageEncoderSettingsobject, setting the desired properties and then passing it to aQCameraImageCaptureinstance using the QCameraImageCapture::setImageSettings() function.QImageEncoderSettings imageSettings; imageSettings.setCodec("image/jpeg"); imageSettings.setResolution(1600, 1200); imageCapture->setEncodingSettings(imageSettings);另请参阅
QImageEncoderSettings
¶
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
(
)
¶
unicode
返回图像编解码器。
另请参阅
PySide2.QtMultimedia.QImageEncoderSettings.
encodingOption
(
option
)
¶
option – unicode
object
Returns the value of encoding
option
.
PySide2.QtMultimedia.QImageEncoderSettings.
encodingOptions
(
)
¶
Returns the all the encoding options as
QVariantMap
.
PySide2.QtMultimedia.QImageEncoderSettings.
isNull
(
)
¶
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
)
¶
other
–
QImageEncoderSettings
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
)
¶
other
–
QImageEncoderSettings
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
(
)
¶
EncodingQuality
Returns the image encoding quality.
另请参阅
PySide2.QtMultimedia.QImageEncoderSettings.
resolution
(
)
¶
QSize
Returns the resolution of the encoded image.
另请参阅
PySide2.QtMultimedia.QImageEncoderSettings.
setCodec
(
arg__1
)
¶
arg__1 – unicode
设置图像
codec
.
另请参阅
PySide2.QtMultimedia.QImageEncoderSettings.
setEncodingOption
(
option
,
value
)
¶
option – unicode
value – object
Set the encoding
option
value
.
The supported set and meaning of encoding options are system and selected codec specific.
PySide2.QtMultimedia.QImageEncoderSettings.
setEncodingOptions
(
options
)
¶
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
)
¶
quality
–
EncodingQuality
Sets the image encoding
quality
.
另请参阅
PySide2.QtMultimedia.QImageEncoderSettings.
setResolution
(
arg__1
)
¶
arg__1
–
QSize
设置
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.
另请参阅
PySide2.QtMultimedia.QImageEncoderSettings.
setResolution
(
width
,
height
)
¶
width
–
int
height
–
int
设置
width
and
height
of the resolution of the encoded image.
这是重载函数。