libs/libkexiv2/libkexiv2
kexiv2previews.cpp
Go to the documentation of this file.
82 Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open((const char*)(QFile::encodeName(filePath)));
100 Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open((Exiv2::byte*)imgData.data(), imgData.size());
bool loadFromData(const uchar *data, int len, const char *format)
QByteArray data(int index=0)
Retrieve the image data for the specified embedded preview image.
Definition: kexiv2previews.cpp:179
QSize originalSize() const
Returns the pixel size of the original image, as read from the file (not the metadata).
Definition: kexiv2previews.cpp:123
QString originalMimeType() const
Returns the mimeType of the original image, detected from the file's content.
Definition: kexiv2previews.cpp:131
KExiv2Previews(const QString &filePath)
Open the given file and scan for embedded preview images.
Definition: kexiv2previews.cpp:77
===========================================================This file is a part of digiKam project htt...
QString mimeType(int index=0)
Definition: kexiv2previews.cpp:165
int dataSize(int index=0)
For each contained preview image, return the size of the image data in bytes, width and height of the...
Definition: kexiv2previews.cpp:144
static void printExiv2ExceptionError(const QString &msg, Exiv2::Error &e)
Generic method to print the Exiv2 C++ Exception error message from 'e'.
QImage image(int index=0)
Loads the data of the specified preview and creates a QImage from this data.
Definition: kexiv2previews.cpp:203
===========================================================This file is a part of digiKam project htt...
QString fileExtension(int index=0)
Definition: kexiv2previews.cpp:172
char * data()
QString fromLatin1(const char *str, int size)
int size() const
===========================================================This file is a part of digiKam project htt...
QByteArray encodeName(const QString &fileName)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.