QtMobility Reference Documentation

QImageEncoderSettings Class Reference

The QImageEncoderSettings class provides a set of image encoder settings. More...

 #include <QImageEncoderSettings>

This class was introduced in Qt Mobility 1.0.

Public Functions

QImageEncoderSettings ()
QImageEncoderSettings ( const QImageEncoderSettings & other )
~QImageEncoderSettings ()
QString codec () const
bool isNull () const
QtMultimediaKit::EncodingQuality quality () const
QSize resolution () const
void setCodec ( const QString & codec )
void setQuality ( QtMultimediaKit::EncodingQuality quality )
void setResolution ( const QSize & resolution )
void setResolution ( int width, int height )
bool operator!= ( const QImageEncoderSettings & other ) const
QImageEncoderSettings & operator= ( const QImageEncoderSettings & other )
bool operator== ( const QImageEncoderSettings & other ) const

Detailed Description

The QImageEncoderSettings class provides a set of image encoder settings.

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

See also QImageEncoderControl.

Member Function Documentation

QImageEncoderSettings::QImageEncoderSettings ()

Constructs a null image encoder settings object.

QImageEncoderSettings::QImageEncoderSettings ( const QImageEncoderSettings & other )

Constructs a copy of the image encoder settings object other.

This function was introduced in Qt Mobility 1.0.

QImageEncoderSettings::~QImageEncoderSettings ()

Destroys a image encoder settings object.

QString QImageEncoderSettings::codec () const

Returns the image codec.

This function was introduced in Qt Mobility 1.0.

See also setCodec().

bool QImageEncoderSettings::isNull () const

Identifies if a image encoder settings object is uninitalized.

Returns true if the settings are null, and false if they are not.

This function was introduced in Qt Mobility 1.0.

QtMultimediaKit::EncodingQuality QImageEncoderSettings::quality () const

Returns the image encoding quality.

This function was introduced in Qt Mobility 1.0.

See also setQuality().

QSize QImageEncoderSettings::resolution () const

Returns the resolution of the encoded image.

This function was introduced in Qt Mobility 1.0.

See also setResolution().

void QImageEncoderSettings::setCodec ( const QString & codec )

Sets the image codec.

This function was introduced in Qt Mobility 1.0.

See also codec().

void QImageEncoderSettings::setQuality ( QtMultimediaKit::EncodingQuality quality )

Sets the image encoding quality.

This function was introduced in Qt Mobility 1.0.

See also quality().

void QImageEncoderSettings::setResolution ( const QSize & resolution )

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.

This function was introduced in Qt Mobility 1.0.

See also resolution().

void QImageEncoderSettings::setResolution ( int width, int height )

Sets the width and height of the resolution of the encoded image.

This is an overloaded function.

This function was introduced in Qt Mobility 1.0.

bool QImageEncoderSettings::operator!= ( const QImageEncoderSettings & other ) const

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.

This function was introduced in Qt Mobility 1.0.

QImageEncoderSettings & QImageEncoderSettings::operator= ( const QImageEncoderSettings & other )

Assigns the value of other to a image encoder settings object.

This function was introduced in Qt Mobility 1.0.

bool QImageEncoderSettings::operator== ( const QImageEncoderSettings & other ) const

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.

This function was introduced in Qt Mobility 1.0.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.