#include <image_effect.h>
Static Public Methods | |
void | blendOnLower (int x_offset, int y_offset, QImage const &upper, QImage &lower) |
void | blend (QImage &image, float val, QRgb color, bool fade_rgb, bool fade_alpha) |
void | blend (QImage &image, int val, QRgb color, bool fade_rgb, bool fade_alpha) |
void | colorize (QImage &image, float val, QRgb color) |
void | colorize (QImage &image, int val, QRgb color) |
void | scale (QImage &image, int new_width, int new_height) |
Static Private Methods | |
void | calcScaleFactors (int from_pixels, int to_pixels, int sum, std::vector< int > &lengths, std::vector< int > &starts, std::vector< int > &factor_offsets, std::vector< Q_UINT32 > &factors) |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. |
|
Blend the image to the given color.
|
|
Blends the upper image on the lower. In contrast to KImageEffect::blendOnLower() the alpha channel of the resulting image is calculated correctly. The implementation is taken mostly from KImageEffect::blendOnLower(), with only small adjustments. Note that both images must be 32bit images.
|
|
Creates the scale factor vectors.
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. |
|
Colorizes the image to the given color.
|
|
Scales the image.
|