Couldn't find an answer by myself so putting it out there,
Would it be possible to apply some kind of a darkish gradient shading at the top and/or bottom of an image dynamically in C# using VS 2010?
The effect would be such that the center of the image is untouched but the closer we get to the bottom or the top of the image, the darker it gets to give it a nice effect.
Regards,
Here's my solution for your question :
For Drawing a shadow like Gradient Over an Image we can use
LinearGradientBrushfromSystem.Drawing.Drawing2Dto define a new brush , by using this brush and also Drawing/Filling a Rectangle on the top of the Image we can have the Shadow Effect over our Imagehere's the result of using this method :
and here's a sample function which takes a bitmap and returns the Bitmap with Shadow Effect :
For more Information , please take a look at :
How to: Create a Linear Gradient
LinearGradientBrush Class
Hope it Helps :)