all groups > dotnet drawing api > august 2003 >
You're in the

dotnet drawing api

group:

Drawing a proper drop-shadow?



Drawing a proper drop-shadow? Christopher Ambler
8/29/2003 11:15:27 AM
dotnet drawing api: I'm working on some GDI+ code to bring a JPG into a bitmap and dynamically
draw a frame and dropshadow around it.

I've got the image loaded and scaled such that I have room, and can do the
frame, but the dropshadow is, invariably, just a black bar on the right and
bottom of the image. Of course, what I want is the nice blurred shadow.

Anyone have any code for this that I can glom?

Christopher

Re: Drawing a proper drop-shadow? Bob Powell [MVP]
8/30/2003 12:46:32 PM
There is a tecnique for creating soft shadows on text in the GDI+ FAQ. This
could also be adapted to provide soft shadows for rectangular objects.


--
Bob Powell [MVP]
C#, System.Drawing

ANNOUNCING: Well Formed.
The monthy electronic magazine for
Windows Forms and GDI+ engineers
http://www.bobpowell.net/wellformed.htm

Check out the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm


[quoted text, click to view]

AddThis Social Bookmark Button