Inherits QObject.
|
|
|
void | createPieChart (const QString &filename, int size, const QStringList &values, const QStringList &colors, const QStringList &texts, const QStringList &legendcolors) |
|
bool | createDesktopScreenshot (const QString &filename) |
|
bool | createIDEScreenshot (const QString &filename) |
|
bool | createThumbNail (const QString &input, const QString &thumb, int size) |
|
bool | createScaledImage (const QString &input, const QString &out, int width) |
|
bool | createScaledImage (const QString &input, const QString &out, int width, int height) |
|
bool | convertImage (const QString &input, const QString &out) |
|
QImage | desaturateImage (const QImage &source, int saturation) |
|
QImage | grayScaleImage (const QImage &source) |
|
QImage | blendToColor (const QImage &source, float red, float green, float blue, float alpha) |
|
Global MLABGraphic object available in all scripts.
The MLABGraphic object can be used to work with 2D image files.
◆ blendToColor
QImage MLABGraphic::blendToColor |
( |
const QImage & |
source, |
|
|
float |
red, |
|
|
float |
green, |
|
|
float |
blue, |
|
|
float |
alpha |
|
) |
| |
|
slot |
Creates an image blended to the given color, range of all numeric parameters is [0..1] (alpha = 0 means the image is unchanged, alpha = 1 fills the image with the color)
◆ convertImage
bool MLABGraphic::convertImage |
( |
const QString & |
input, |
|
|
const QString & |
out |
|
) |
| |
|
slot |
Copies the given image to the output file by converting the image format.
◆ createDesktopScreenshot
bool MLABGraphic::createDesktopScreenshot |
( |
const QString & |
filename | ) |
|
|
slot |
Grabs the whole desktop, or rather, the primary screen of the desktop if you have several screens connected.
◆ createIDEScreenshot
bool MLABGraphic::createIDEScreenshot |
( |
const QString & |
filename | ) |
|
|
slot |
Grabs the MeVisLab IDE window.
◆ createPieChart
void MLABGraphic::createPieChart |
( |
const QString & |
filename, |
|
|
int |
size, |
|
|
const QStringList & |
values, |
|
|
const QStringList & |
colors, |
|
|
const QStringList & |
texts, |
|
|
const QStringList & |
legendcolors |
|
) |
| |
|
slot |
◆ createScaledImage [1/2]
bool MLABGraphic::createScaledImage |
( |
const QString & |
input, |
|
|
const QString & |
out, |
|
|
int |
width |
|
) |
| |
|
slot |
Creates a scaled image (aspectRatio is kept, height is calculated depending on the width
).
◆ createScaledImage [2/2]
bool MLABGraphic::createScaledImage |
( |
const QString & |
input, |
|
|
const QString & |
out, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
slot |
Creates a scaled image (aspectRatio is not kept).
◆ createThumbNail
bool MLABGraphic::createThumbNail |
( |
const QString & |
input, |
|
|
const QString & |
thumb, |
|
|
int |
size |
|
) |
| |
|
slot |
Creates a thumbnail for the given image.
◆ desaturateImage
QImage MLABGraphic::desaturateImage |
( |
const QImage & |
source, |
|
|
int |
saturation |
|
) |
| |
|
slot |
Creates a desaturated image (saturation
is given in the range [0..100]).
◆ grayScaleImage
QImage MLABGraphic::grayScaleImage |
( |
const QImage & |
source | ) |
|
|
slot |
Creates a gray scale version of the given image.