内容表

上一话题

QImageEncoderControl

下一话题

QMediaAudioProbeControl

QImageEncoderSettings

QImageEncoderSettings class provides a set of image encoder settings. 更多

Inheritance diagram of PySide2.QtMultimedia.QImageEncoderSettings

概要

函数

详细描述

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);
											
class QImageEncoderSettings

QImageEncoderSettings(other)

param other

QImageEncoderSettings

Constructs a null image encoder settings object.

Constructs a copy of the image encoder settings object other .

PySide2.QtMultimedia.QImageEncoderSettings. codec ( )
返回类型

unicode

返回图像编解码器。

另请参阅

setCodec()

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.

另请参阅

setQuality()

PySide2.QtMultimedia.QImageEncoderSettings. resolution ( )
返回类型

QSize

Returns the resolution of the encoded image.

另请参阅

setResolution()

PySide2.QtMultimedia.QImageEncoderSettings. setCodec ( arg__1 )
参数

arg__1 – unicode

设置图像 codec .

另请参阅

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 .

另请参阅

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.

另请参阅

resolution()

PySide2.QtMultimedia.QImageEncoderSettings. setResolution ( width , height )
参数
  • width int

  • height int

设置 width and height of the resolution of the encoded image.

这是重载函数。