Tag Archives: pen

Use fuzzy lines to draw shadows in C#

One way to draw shadows in C# is to draw an object shifted down and to the right in a light gray color as shown on the left in the picture above. This works fairly well but isn’t completely convincing … Continue reading

Posted in drawing, graphics, image processing | Tagged , , , , , , , , , , , , , , | 4 Comments

Draw an ellipse that sort of looks like a button in C#

This example uses two LinearGradientBrushes to draw an ellipse that has a sort of three-dimensional button-like appearance. The key is to outline the ellipse and then fill it with brushes whose gradients point in opposite directions. The following code shows … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , , , , | Leave a comment