PDA

View Full Version : QImage glow effect



MarkoSan
30th March 2008, 18:30
Hi to all!

Can someone please give me some hints how to achieve, that QImage's borders will have glow effect?

aamer4yu
30th March 2008, 19:30
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 (http://msdn2.microsoft.com/en-us/library/ms752037.aspx) might help you.

MarkoSan
31st March 2008, 06:01
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 (http://msdn2.microsoft.com/en-us/library/ms752037.aspx) 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?

wysota
31st March 2008, 06:13
Use the "Painter's Algorithm" - paint the glow first and then overpaint the image.

MarkoSan
31st March 2008, 06:15
ahhhhh, wysota, like always, thanks for tip .... :D