QImageEncoderControlclass provides access to the settings of a media service that performs image encoding. 更多 …
若
QMediaServicesupports encoding image data it will implementQImageEncoderControl. This control allows toset image encoding settingsand provides functions for quering supported imagecodecsandresolutions.The interface name of
QImageEncoderControlisorg.qt-project.qt.imageencodercontrol/5.0作为定义在QImageEncoderControl_iid.
QImageEncoderControl
(
[
parent=None
]
)
¶
- param parent
QObject
Constructs a new image encoder control object with the given
parent
PySide2.QtMultimedia.QImageEncoderControl.
imageCodecDescription
(
codec
)
¶
codec – unicode
unicode
Returns a description of an image
codec
.
PySide2.QtMultimedia.QImageEncoderControl.
imageSettings
(
)
¶
Returns the currently used image encoder settings.
The returned value may be different tha passed to
setImageSettings()
if the settings contains the default or undefined parameters. In this case if the undefined parameters are already resolved, they should be returned.
另请参阅
PySide2.QtMultimedia.QImageEncoderControl.
setImageSettings
(
settings
)
¶
settings
–
QImageEncoderSettings
Sets the selected image encoder
settings
.
另请参阅
PySide2.QtMultimedia.QImageEncoderControl.
supportedImageCodecs
(
)
¶
字符串列表
Returns a list of supported image codecs.