2 Attachment(s)
[RESOLVED] Custom drop shadow
Hello!
I'm look after a solution to draw some drop shadow to my drawn objects to make the gui more entertaining. The way i found is that i use getpixel/setpixel to blend the edges to make the shadow like effect. Well if you look at the attached img it looks almost ok, but the problems is that this way is pretty much slow :( I also want to implement some bluring to make the edges less sharp, but i just dont get any examples about how to compute. That may also give some more performance drops. :(
Is there any way to attaching, or just force the system to render multiple drop shadow effect instances inside a picturebox, wherever i want it? I think about the shadow beneath the popup menus for example.
Re: [RESOLVED] Custom drop shadow
You're welcome. That was a great tutorial wasn't it? I studied that thing for weeks when I first started to mess with DIBs and bookmarked it too.
I saw your new project. If you want to check it for memory leaks, check out my tutorial in the FAQ section. If you have XP/2K, you can pretty much confirm/deny leaks within a few minutes.
Re: [RESOLVED] Custom drop shadow
Ah yes it is! Ok i just read the first 2 sections, that was extactly i'm looking for. Im sorry to say, but its even better than any code i read so far. I also learnd the hijack way (well more or less), that is a brilliant way to direct access some 'previously hidden' memory areas. Maybe (later) i can adopt it into my futher codings as well!
Nice collection of experiments you got in there! Im diggin it!
Thanks, again.