内容表

上一话题

QCustomAudioRoleControl

下一话题

QImageEncoderSettings

QImageEncoderControl

QImageEncoderControl class provides access to the settings of a media service that performs image encoding. 更多

Inheritance diagram of PySide2.QtMultimedia.QImageEncoderControl

详细描述

QMediaService supports encoding image data it will implement QImageEncoderControl . This control allows to set image encoding settings and provides functions for quering supported image codecs and resolutions .

The interface name of QImageEncoderControl is org.qt-project.qt.imageencodercontrol/5.0 作为定义在 QImageEncoderControl_iid .

class 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 ( )
返回类型

QImageEncoderSettings

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 .

另请参阅

imageSettings()

PySide2.QtMultimedia.QImageEncoderControl. supportedImageCodecs ( )
返回类型

字符串列表

Returns a list of supported image codecs.