The Image class Contains generic methods on image formats.
More...
#include <image.h>
The Image class Contains generic methods on image formats.
- Author
QPixmap Gui::Utils::Image::bytesToPixmap |
( |
const QByteArray |
bytes | ) |
|
|
static |
Image::BytesToPixmap Return QPixmap from an array of bytes.
- Parameters
-
- Returns
- QPixmap from bytes
QPixmap Gui::Utils::Image::getImage |
( |
QString |
path, |
|
|
int |
width = 256 , |
|
|
int |
height = 256 |
|
) |
| |
|
static |
Image::getImage Return a scaled image from the icon specified by it path. The image returned has a resolution of width*height (default 256*256)
- Parameters
-
path | Icon path |
width | Icon width |
height | Icon height |
- Returns
- Scaled image
QByteArray Gui::Utils::Image::imageToBytes |
( |
QImage |
image, |
|
|
const QString |
ext = "PNG" |
|
) |
| |
|
static |
Image::imageToBytes Return a QByteArray of the QImage image
- Parameters
-
image | An image |
ext | Extension file of the image (PNG as default value) |
- Returns
- array of bytes from an QImage image
QByteArray Gui::Utils::Image::pixmapToBytes |
( |
const QPixmap |
pix, |
|
|
const QString |
ext = "PNG" |
|
) |
| |
|
static |
Image::pixmapToBytes Return a QByteArray of the QPixmap image
- Parameters
-
pix | An image |
ext | Extension file of the image (PNG as default value) |
- Returns
- array of bytes from an QPixmap image
QImage Gui::Utils::Image::pixmapToImage |
( |
const QPixmap |
pix | ) |
|
|
static |
The documentation for this class was generated from the following files:
- /home/travis/build/FACT-Team/FactDev/src/gui/utils/image.h
- /home/travis/build/FACT-Team/FactDev/src/gui/utils/image.cpp