Results 1 to 3 of 3

Thread: QPixmap Brightness ( Inc & dec)

  1. #1
    Join Date
    Jun 2009
    Location
    India
    Posts
    143
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QPixmap Brightness ( Inc & dec)

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: QPixmap Brightness ( Inc & dec)

    What is a brightness of less than 0?

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

  3. #3
    Join Date
    Jun 2009
    Location
    India
    Posts
    143
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QPixmap Brightness ( Inc & dec)

    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.

Similar Threads

  1. Adjust gui brightness
    By Lodorot in forum Qt Programming
    Replies: 3
    Last Post: 16th September 2009, 05:32
  2. Query:How to change brightness of a screen(framebuffer) using Qtopia ?
    By sureshgani1984 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 18th May 2009, 00:23
  3. contrast, transparency, brightness...
    By Noxxik in forum Qt Programming
    Replies: 6
    Last Post: 28th February 2009, 22:29
  4. How to increase/decrease brightness/sharpness
    By rishiraj in forum Newbie
    Replies: 2
    Last Post: 21st January 2009, 06:25
  5. Image brightness/contrast adjustments
    By striker303 in forum Qt Programming
    Replies: 2
    Last Post: 8th September 2008, 08:29

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.