Results 1 to 3 of 3

Thread: Image brightness/contrast adjustments

  1. #1
    Join Date
    Sep 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Image brightness/contrast adjustments

    Greetings,

    I'm developing an application, which has a simple image viewer included. The image viewer is used to display rather large--color and grayscale--images (> tens of megabytes). I want to add a brightness/contrast slider for the user to dynamically alter the image's pixel values.

    Currently I'm using QGraphicsView and QGraphicsScene with a single QPixmap item. I can nicely transform (e.g., rotate and transform) the image, but when it becomes to altering the pixel values, the response becomes very sluggish. This must be due to the need of converting the QPixmap into QImage for pixel manipulation, and again back to QPixmap to be inserted back into the scene.

    Back with MFC, I used to do this with the device context's SetColorAdjustment() function, which would then be used with BitBlt() function. Everything worked nice and smoothly.

    If somebody has some ideas on how to implement this on Qt (4.3), I would reaaaally appreciate it! I'd prefer to use the QGraphicsScene-based approach, since it offers a great many features.

    Thanks for this awesome forum, keep up the good work..

    Best regards,
    Jim Reeds

  2. #2
    Join Date
    Aug 2006
    Location
    Germany
    Posts
    33
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Image brightness/contrast adjustments


  3. #3
    Join Date
    Sep 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Image brightness/contrast adjustments

    Many thanks, that pointed me into the right tracks. The timer approach works.

    All the best,
    Jim

Similar Threads

  1. can Qlabel display a series of image one by one ?
    By jirach_gag in forum Qt Tools
    Replies: 3
    Last Post: 11th August 2008, 15:36
  2. Finding marks on scanned image for alignment
    By caduel in forum Qt Programming
    Replies: 1
    Last Post: 23rd September 2007, 02:10
  3. Explanation to Image Formats
    By sincnarf in forum Qt Programming
    Replies: 13
    Last Post: 6th July 2007, 17:02
  4. How and when to repaint a widget ?
    By yellowmat in forum Newbie
    Replies: 7
    Last Post: 3rd April 2006, 16:36
  5. Question about updating an image on screen
    By SkripT in forum Qt Programming
    Replies: 1
    Last Post: 24th February 2006, 19:01

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.