23 static QByteArray
imageToBytes(QImage image,
const QString ext=
"PNG");
32 static QByteArray
pixmapToBytes(
const QPixmap pix,
const QString ext=
"PNG");
57 static QPixmap
getImage(QString path,
int width = 256,
int height = 256);
static QPixmap getImage(QString path, int width=256, int height=256)
Image::getImage Return a scaled image from the icon specified by it path. The image returned has a re...
Definition: image.cpp:21
static QPixmap bytesToPixmap(const QByteArray bytes)
Image::BytesToPixmap Return QPixmap from an array of bytes.
Definition: image.cpp:16
static QByteArray imageToBytes(QImage image, const QString ext="PNG")
Image::imageToBytes Return a QByteArray of the QImage image
Definition: image.cpp:29
static QByteArray pixmapToBytes(const QPixmap pix, const QString ext="PNG")
Image::pixmapToBytes Return a QByteArray of the QPixmap image
Definition: image.cpp:6
static QImage pixmapToImage(const QPixmap pix)
Image::pixmapToImage Return a QImage of QPixmap image
Definition: image.cpp:11
The Image class Contains generic methods on image formats.
Definition: image.h:14