KExiv2Iface::KExiv2Previews Class
class KExiv2Iface::KExiv2Previews| Header: | #include <KExiv2/KExiv2Previews> |
| CMake: | find_package(KExiv2Qt6 REQUIRED)target_link_libraries(mytarget PRIVATE KExiv2Qt6) |
Public Functions
| KExiv2Previews(const QByteArray &imgData) | |
| KExiv2Previews(const QString &filePath) | |
| ~KExiv2Previews() | |
| int | count() |
| QByteArray | data(int index = 0) |
| int | dataSize(int index = 0) |
| QString | fileExtension(int index = 0) |
| int | height(int index = 0) |
| QImage | image(int index = 0) |
| bool | isEmpty() |
| QString | mimeType(int index = 0) |
| QString | originalMimeType() const |
| QSize | originalSize() const |
| int | size() |
| int | width(int index = 0) |
Detailed Description
Member Function Documentation
KExiv2Previews::KExiv2Previews(const QByteArray &imgData)
Open the given image data and scan the image for embedded preview images.
KExiv2Previews::KExiv2Previews(const QString &filePath)
Open the given file and scan for embedded preview images.
[noexcept] KExiv2Previews::~KExiv2Previews()
int KExiv2Previews::count()
Returns how many embedded previews are available.
QByteArray KExiv2Previews::data(int index = 0)
Retrieve the image data for the specified embedded preview image.
int KExiv2Previews::dataSize(int index = 0)
For each contained preview image, return the size of the image data in bytes, width and height of the preview, the mimeType and the file extension.
Ensure that index < count().
Previews are sorted by width*height, largest first.
QString KExiv2Previews::fileExtension(int index = 0)
int KExiv2Previews::height(int index = 0)
QImage KExiv2Previews::image(int index = 0)
Loads the data of the specified preview and creates a QImage from this data.
Returns a null QImage if the loading failed.
bool KExiv2Previews::isEmpty()
Returns if there are any preview images available.
QString KExiv2Previews::mimeType(int index = 0)
QString KExiv2Previews::originalMimeType() const
Returns the mimeType of the original image, detected from the file's content.
QSize KExiv2Previews::originalSize() const
Returns the pixel size of the original image, as read from the file (not the metadata).