Results 1 to 4 of 4

Thread: QImage reflection

  1. #1
    Join Date
    Jun 2010
    Posts
    97
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QImage reflection

    Hi,

    I want to have reflection of QImage so that image looks like having mirrored image at bottom merged in ground. How to achieve this


    Regards

    Manish

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QImage reflection

    Well, create a QPixmap, create a QPainter on it and draw the image, draw it again using QImage::mirrored() and finally "play" with QPainter::CompositionMode to get the fade out effect on the bottom.

  3. #3
    Join Date
    Jun 2010
    Posts
    97
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QImage reflection

    Thanks Lykurg.

    It is achieved using your advice.


    Thanks

    Manish

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QImage reflection

    6:30 Question
    6:36 Answer/Advice
    6:50 Success

    Wow, we are a really fast board!

Similar Threads

  1. QxOrm : Persistence (ORM), Serialization, Reflection
    By QxOrm in forum Qt-based Software
    Replies: 19
    Last Post: 27th January 2014, 04:36
  2. Reflection on Qt
    By tchoninho in forum Qt Programming
    Replies: 2
    Last Post: 13th December 2011, 12:51
  3. java reflection
    By mickey in forum General Programming
    Replies: 1
    Last Post: 24th July 2008, 21:17
  4. Making a reflection of a picture
    By desch in forum Qt Programming
    Replies: 2
    Last Post: 17th February 2008, 18:38
  5. reflection and qmetaobject
    By KShots in forum Qt Programming
    Replies: 8
    Last Post: 16th May 2007, 20:53

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.