23 class imageOperationsTest:
public QObject
29 QImage HydrogeneaGray;
35 QVector<QImage> images;
39 void cleanupTestCase();
45 void isBlackAndWhite_data();
49 void optimizedFormat_data();
52 void ToAndFromData_data();
bool isBlackAndWhite(const QImage &image)
Determine whether an image is black-and-white only.
QImage deAlpha(const QImage &image, QRgb background=0xFFFFFFFF)
Removes alpha channel from image.
QImage optimizedFormat(const QImage &inputImage)
Convert image to memory-saving format.
bool isOpaque(const QImage &image)
Check if the image is opaque.
QVector< QRgb > colors(const QImage &image)
Finds the set of all colors used in a given image.
QImage simplifyTransparentPixels(const QImage &image)
Replaces all fully transparent pixels by pixels of color 0x00FFFFFF (="fully transparent white")