digiKam
|
Functions | |
QString | libPGFVersion () |
bool | loadPGFScaled (QImage &img, const QString &path, int maximumSize) |
bool | readPGFImageData (const QByteArray &data, QImage &img, bool verbose) |
bool | writePGFImageData (const QImage &image, QByteArray &data, int quality, bool verbose) |
bool | writePGFImageDataToStream (const QImage &image, CPGFStream &stream, int quality, UINT32 &nWrittenBytes, bool verbose) |
bool | writePGFImageFile (const QImage &image, const QString &filePath, int quality, bool verbose) |
DIGIKAM_EXPORT QString Digikam::PGFUtils::libPGFVersion | ( | ) |
Return a libpgf version string
Referenced by Digikam::LibsInfoDlg::LibsInfoDlg().
DIGIKAM_EXPORT bool Digikam::PGFUtils::loadPGFScaled | ( | QImage & | img, |
const QString & | path, | ||
int | maximumSize | ||
) |
Load a reduced version of PGF file
DIGIKAM_EXPORT bool Digikam::PGFUtils::readPGFImageData | ( | const QByteArray & | data, |
QImage & | img, | ||
bool | verbose = false |
||
) |
PGF image data to QImage using memory stream. NOTE: Only use this method to manage PGF thumbnails stored in database.
DIGIKAM_EXPORT bool Digikam::PGFUtils::writePGFImageData | ( | const QImage & | image, |
QByteArray & | data, | ||
int | quality, | ||
bool | verbose = false |
||
) |
QImage to PGF image data using memory stream.
quality | set compression ratio: 0 => lossless compression, as PNG. 1 => Not loss less compression, wavelets based... 2 => ... 3 => ... 4 => Same compression ratio near than JPEG quality=85. Image quality is valid for thumbnails. >= 5 => provide artifacts due to down-sampling. Do not use it... NOTE: Only use this method to manage PGF thumbnails stored in database. |
References writePGFImageDataToStream().
bool Digikam::PGFUtils::writePGFImageDataToStream | ( | const QImage & | image, |
CPGFStream & | stream, | ||
int | quality, | ||
UINT32 & | nWrittenBytes, | ||
bool | verbose | ||
) |
Referenced by writePGFImageData(), and writePGFImageFile().
DIGIKAM_EXPORT bool Digikam::PGFUtils::writePGFImageFile | ( | const QImage & | image, |
const QString & | filePath, | ||
int | quality, | ||
bool | verbose = false |
||
) |
QImage to PGF image data using file stream. Uses same params than writePGFImageData() excepted 'filePath' which is PGF target file path.
References writePGFImageDataToStream().