Results 1 to 8 of 8

Thread: how to clean data in qimage with transparent?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    520
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 77 Times in 75 Posts

    Default Re: how to clean data in qimage with transparent?

    Hi, probably the data is not "cleared" because you paint above it with a transparent brush, so you can see through the newly painted pixels and see the old data.

    Have you tried wysota's solution from the other thread (set QPainter::QPainter::CompositionMode_Clear)?

    Ginsengelf

  2. The following user says thank you to Ginsengelf for this useful post:

    rolandsun (13th June 2012)

Similar Threads

  1. QImage and Qt::transparent
    By babu198649 in forum Newbie
    Replies: 11
    Last Post: 13th February 2016, 18:51
  2. QImage data via FFmpeg
    By Degenko in forum Qt Programming
    Replies: 9
    Last Post: 14th September 2010, 04:05
  3. How can I create a transparent image with QImage?
    By learning_qt in forum Qt Programming
    Replies: 1
    Last Post: 28th January 2009, 15:06
  4. clean with transparent color
    By Lele in forum Qt Programming
    Replies: 9
    Last Post: 28th October 2007, 13:45
  5. Creating a QImage from uchar* data
    By forrestfsu in forum Qt Programming
    Replies: 6
    Last Post: 8th February 2007, 15:21

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.