Hi!
Is this possible somehow?
In the ideal case using a definable color conversion matrix?
Or is it possible to configure the QPainter to do what I want?
Best regards,Olli
Hi!
Is this possible somehow?
In the ideal case using a definable color conversion matrix?
Or is it possible to configure the QPainter to do what I want?
Best regards,Olli
QGraphicsView is a QWidget, you can use QWidget::setBackgroundRole
This is not what I intend.
I woul like to be able to adjust the colors of *all* grpahical output of my view.
As an example, I would like to decrease the brightness by a factor of 0.5, or increase the contrast, gamma, hue, saturation,....
I think that the QGraphicsView class is the ideal point where to perform such changes.
What does your view contain ? If its a single picture, you can use QImage to perform the operations.
There was some demo on Qt Labs about how to increase the brightness, etc.
If your view contains multiple items, it will be tricky and you will have to decide some algo how to adjust those features...
I found this article, but what they propose is just a workaround.
Does QPainter offer a possibility to adjust the contrast etc ?
No, QPainter is a painter which helps you draw shapes... it doesnt have intelligence to know what is being drawn..
But this would really be a nice feature.
There is also not really intelligence necessary. One would just specify a transformation matrix that is to be multiplied with the color to be used.
Bookmarks