PDA

View Full Version : QPixmap Brightness ( Inc & dec)



augusbas
31st January 2011, 05:32
Hi all,

I have a QPixmap image( loaded from a file ) in my Graphicsscene..

I need to adjust ( decrease or increase ) the brightness of the image in the range of -100 to +100.

How can i achieve this ...Guide me ...

Thank you..

Regards,
Augus.

tbscope
31st January 2011, 05:38
What is a brightness of less than 0?

Here's an example (1 minute of google time)
http://www.qtforum.org/article/26907/contrast-transparency-brightness.html

augusbas
31st January 2011, 05:45
Hi,

Thank you for your reply

With 0 as a point, the image has brightness same as when loaded from a file ...

with towards positive (1 to 100) it increases the image brightness.

with towards negative (-1 to -100) it decreases the image brightness.