Results 1 to 5 of 5

Thread: QImage glow effect

  1. #1
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default QImage glow effect

    Hi to all!

    Can someone please give me some hints how to achieve, that QImage's borders will have glow effect?
    Qt 5.3 Opensource & Creator 3.1.2

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QImage glow effect

    Depends on what kind of glow u want...
    simplest thing wud be, choose a color of urs, find a glowing match for that color, and paint the border with that color.

    You can search some algorithms too for glow effect. This might help you.

  3. #3
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QImage glow effect

    Quote Originally Posted by aamer4yu View Post
    Depends on what kind of glow u want...
    simplest thing wud be, choose a color of urs, find a glowing match for that color, and paint the border with that color.

    You can search some algorithms too for glow effect. This might help you.
    Well, I am sorry but I do not read MSDN because it is baaaadllly written, however I've gave a look but I does not help me. I meant to do glow effect using plain qt. The first idea you gave will be good for now. Now, how to paint border of QImage?
    Qt 5.3 Opensource & Creator 3.1.2

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QImage glow effect

    Use the "Painter's Algorithm" - paint the glow first and then overpaint the image.

  5. The following user says thank you to wysota for this useful post:

    MarkoSan (31st March 2008)

  6. #5
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Smile Re: QImage glow effect

    ahhhhh, wysota, like always, thanks for tip ....
    Qt 5.3 Opensource & Creator 3.1.2

Similar Threads

  1. Replies: 12
    Last Post: 7th September 2011, 16:37
  2. QShared
    By sabeesh in forum Qt Programming
    Replies: 11
    Last Post: 11th October 2007, 12:40

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.