![]() |
Qt 6.x
The Qt SDK
|
The QQuickImageProviderOptions class provides options for QQuickImageProviderWithOptions image requests. More...
#include <qquickpixmapcache_p.h>
Public Types | |
enum | AutoTransform { UsePluginDefaultTransform = -1 , ApplyTransform = 0 , DoNotApplyTransform = 1 } |
Whether the image provider should apply transformation metadata on read(). More... | |
Public Member Functions | |
QQuickImageProviderOptions () | |
~QQuickImageProviderOptions () | |
QQuickImageProviderOptions (const QQuickImageProviderOptions &) | |
QQuickImageProviderOptions & | operator= (const QQuickImageProviderOptions &) |
bool | operator== (const QQuickImageProviderOptions &) const |
AutoTransform | autoTransform () const |
Returns whether the image provider should apply transformation metadata on read(). | |
void | setAutoTransform (AutoTransform autoTransform) |
bool | preserveAspectRatioCrop () const |
Returns whether the image request is for a PreserveAspectCrop Image. | |
void | setPreserveAspectRatioCrop (bool preserveAspectRatioCrop) |
bool | preserveAspectRatioFit () const |
Returns whether the image request is for a PreserveAspectFit Image. | |
void | setPreserveAspectRatioFit (bool preserveAspectRatioFit) |
QColorSpace | targetColorSpace () const |
Returns the color space the image provider should return the image in. | |
void | setTargetColorSpace (const QColorSpace &colorSpace) |
The QQuickImageProviderOptions class provides options for QQuickImageProviderWithOptions image requests.
\inmodule QtQuick
Definition at line 58 of file qquickpixmapcache_p.h.
Whether the image provider should apply transformation metadata on read().
\value UsePluginDefaultTransform Image provider should do its default behavior on whether applying transformation metadata on read or not \value ApplyTransform Image provider should apply transformation metadata on read \value DoNotApplyTransform Image provider should not apply transformation metadata on read
Enumerator | |
---|---|
UsePluginDefaultTransform | |
ApplyTransform | |
DoNotApplyTransform |
Definition at line 61 of file qquickpixmapcache_p.h.
QQuickImageProviderOptions::QQuickImageProviderOptions | ( | ) |
Definition at line 503 of file qquickimageprovider.cpp.
QQuickImageProviderOptions::~QQuickImageProviderOptions | ( | ) |
Definition at line 508 of file qquickimageprovider.cpp.
QQuickImageProviderOptions::QQuickImageProviderOptions | ( | const QQuickImageProviderOptions & | other | ) |
Definition at line 512 of file qquickimageprovider.cpp.
QQuickImageProviderOptions::AutoTransform QQuickImageProviderOptions::autoTransform | ( | ) | const |
Returns whether the image provider should apply transformation metadata on read().
Definition at line 534 of file qquickimageprovider.cpp.
References QQuickImageProviderOptionsPrivate::autoTransform.
Referenced by createPixmapDataSync(), readImage(), and setAutoTransform().
QQuickImageProviderOptions & QQuickImageProviderOptions::operator= | ( | const QQuickImageProviderOptions & | other | ) |
Definition at line 517 of file qquickimageprovider.cpp.
References other().
bool QQuickImageProviderOptions::operator== | ( | const QQuickImageProviderOptions & | other | ) | const |
Definition at line 523 of file qquickimageprovider.cpp.
References QQuickImageProviderOptionsPrivate::autoTransform, other(), QQuickImageProviderOptionsPrivate::preserveAspectRatioCrop, QQuickImageProviderOptionsPrivate::preserveAspectRatioFit, and QQuickImageProviderOptionsPrivate::targetColorSpace.
bool QQuickImageProviderOptions::preserveAspectRatioCrop | ( | ) | const |
Returns whether the image request is for a PreserveAspectCrop Image.
This allows the provider to better optimize the size of the returned image.
Definition at line 548 of file qquickimageprovider.cpp.
References QQuickImageProviderOptionsPrivate::preserveAspectRatioCrop.
Referenced by QuickSharedImageLoader::key(), QQuickImageProviderWithOptions::loadSize(), and setPreserveAspectRatioCrop().
bool QQuickImageProviderOptions::preserveAspectRatioFit | ( | ) | const |
Returns whether the image request is for a PreserveAspectFit Image.
This allows the provider to better optimize the size of the returned image.
Definition at line 562 of file qquickimageprovider.cpp.
References QQuickImageProviderOptionsPrivate::preserveAspectRatioFit.
Referenced by QuickSharedImageLoader::key(), QQuickImageProviderWithOptions::loadSize(), and setPreserveAspectRatioFit().
void QQuickImageProviderOptions::setAutoTransform | ( | QQuickImageProviderOptions::AutoTransform | autoTransform | ) |
Definition at line 539 of file qquickimageprovider.cpp.
References QQuickImageProviderOptionsPrivate::autoTransform, and autoTransform().
void QQuickImageProviderOptions::setPreserveAspectRatioCrop | ( | bool | preserveAspectRatioCrop | ) |
Definition at line 553 of file qquickimageprovider.cpp.
References QQuickImageProviderOptionsPrivate::preserveAspectRatioCrop, and preserveAspectRatioCrop().
void QQuickImageProviderOptions::setPreserveAspectRatioFit | ( | bool | preserveAspectRatioFit | ) |
Definition at line 567 of file qquickimageprovider.cpp.
References QQuickImageProviderOptionsPrivate::preserveAspectRatioFit, and preserveAspectRatioFit().
void QQuickImageProviderOptions::setTargetColorSpace | ( | const QColorSpace & | colorSpace | ) |
Definition at line 580 of file qquickimageprovider.cpp.
References QQuickImageProviderOptionsPrivate::targetColorSpace.
QColorSpace QQuickImageProviderOptions::targetColorSpace | ( | ) | const |
Returns the color space the image provider should return the image in.
Definition at line 575 of file qquickimageprovider.cpp.
References QQuickImageProviderOptionsPrivate::targetColorSpace.
Referenced by readImage().