#include <Workspace/Presentation/operationviewpixmapfactory.h>
◆ IconHueRegistry
◆ IconRegistry
◆ PixmapRole
Enumerator |
---|
StandardBackground | |
ErrorBackground | |
PlaceholderBackground | |
PlaceholderSelectedBackground | |
◆ ~OperationViewPixmapFactory()
◆ OperationViewPixmapFactory()
◆ adjustHue()
- Parameters
-
original | The original image to adjust the hue |
hue | The desired hue of the image |
- Returns
- A hue-adjusted copy of the original input-image.
Takes the input image and adjusts the hue of it. It does this by iterating over each of the pixels in the image and setting the hue to the clamped difference between the desired hue, and the hue in the center of the image.
This obviously assumes:
- The image size is relatively small, otherwise doing this will be very expensive since there is no parallelisation.
- The input image's central pixel contains the matching hue value.
◆ getInstance()
◆ getPixmap()
◆ setDimOperations()
void setDimOperations |
( |
bool |
val | ) |
|
|
static |
◆ setSaturation()
QPixmap setSaturation |
( |
const QPixmap & |
original, |
|
|
int |
saturation |
|
) |
| |
|
staticprotected |
Sets the saturation of each pixel in the original image to a given level and returns the adjusted image
- Parameters
-
original | The original image |
saturation | The new saturation level |
◆ dimmedIconRegistry
◆ iconRegistry