Changeset View
Changeset View
Standalone View
Standalone View
ui/pagepainter.h
Context not available. | |||||
56 | static void cropPixmapOnImage( QImage & dest, const QPixmap * src, const QRect & r ); | 56 | static void cropPixmapOnImage( QImage & dest, const QPixmap * src, const QRect & r ); | ||
---|---|---|---|---|---|
57 | static void recolor(QImage *image, const QColor &foreground, const QColor &background); | 57 | static void recolor(QImage *image, const QColor &foreground, const QColor &background); | ||
58 | 58 | | |||
59 | // create an image taking the 'cropRect' portion of an image scaled | | |||
60 | // to 'scaledWidth' by 'scaledHeight' pixels. cropRect must be inside | | |||
61 | // the QRect(0,0, scaledWidth,scaledHeight) | | |||
62 | static void scalePixmapOnImage( QImage & dest, const QPixmap *src, | | |||
63 | int scaledWidth, int scaledHeight, const QRect & cropRect, QImage::Format format = QImage::Format_ARGB32_Premultiplied ); | | |||
64 | | ||||
65 | // set the alpha component of the image to a given value | 59 | // set the alpha component of the image to a given value | ||
66 | static void changeImageAlpha( QImage & image, unsigned int alpha ); | 60 | static void changeImageAlpha( QImage & image, unsigned int alpha ); | ||
67 | 61 | | |||
Context not available. |