I am now writing a image viewer, It is used for view thumbnails. As it is ugly, I decide to draw shadow round thumbnail.
There is background color. I am using StretchDIBits to draw a shadow image at the location of thumbnail. However it is really annoying that it cover the background color... When the background is white, it looks perfect. but if the backgound is not white, it has a white border.
so I make use of AlphaBlend, first draw the shadow image onto a DC, then use AlphaBlend onto the background. However, I can still see the white border.
Is there any why to generate a perfect shadow , no matter what background is.