Visual Studio Development Bookmark and Share   
 index > Visual C# Express Edition > Shadows
 

Shadows

How do I add a shadow on top of a bimap and darken the bitmap underneath? The shadow is also a bitmap.

If I draw the shadow on top of the first bitmap with transparency it lightens the image underneath if the areas are darker than the shadow.

I know about alpha blending and transparency, but how do I "Darken only"?

justJoe  Thursday, July 31, 2008 4:31 PM

Hi Just Joe,


Perhaps you can take a look at the following article with a sample in code project, which introduces how to draw transparent drop shadow by using PNG pictures.

Transparent drop shadow in C# (GDI+)


Regards,

Xun

Xun Ye  Monday, August 04, 2008 5:35 AM

You can do this very easy in Photoshop CS. Perhaps you should do that then add the bitmap.

JohnGrove  Thursday, July 31, 2008 5:10 PM

It's got to be at run-time.

justJoe  Thursday, July 31, 2008 6:17 PM

Hi Just Joe,


Perhaps you can take a look at the following article with a sample in code project, which introduces how to draw transparent drop shadow by using PNG pictures.

Transparent drop shadow in C# (GDI+)


Regards,

Xun

Xun Ye  Monday, August 04, 2008 5:35 AM

Hey Xun,

Cool, I will add that to my list of UI stuff...

JohnGrove  Monday, August 04, 2008 10:27 PM

You can use google to search for other answers

Custom Search

More Threads

• To change the starting position of the form
• making a 21 day trial version for a program.
• Extract Audio Features of videos
• Textbox freezes up and only puts out the end field of a file
• ASP.NET development server failed to start
• Debugging session frozen at lock(), how to resume?
• Help with a C# game
• console applicaiton....totally supress window - very confused.
• Where specify install folder?
• Random picture in picturebox