Tag Archives: Opacity

Adjust an image’s opacity in C#

I recently wanted to reduce an image’s contrast by adjusting its opacity. If you draw a semi-transparent image on top of a white background, the result looks washed out so it can act as a background for text or whatever. … Continue reading

Posted in graphics, image processing | Tagged , , , , , , , | 2 Comments

Adjust image translucency in C#

The example Use an ImageAttributes object to adjust an image’s brightness in C# uses a ColorMatrix object to scale the red, green, and blue color components of an image’s pixels. You can use a similar technique to scale the pixels’ … Continue reading

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

Make a form fade out until it disappears in C#, Part 2

The example Make a form fade out until it disappears in C# makes a form fade out when the user clicks the form’s Close button, but there are several other ways the user can close the form without it fading … Continue reading

Posted in forms, user interface | Tagged , , , , , , , , , , , , | Leave a comment

Make a form fade out until it disappears in C#

Normally when you close a form it disappears. This example shows how you can provide a different effect by making the form fade out until it vanishes. (Like a ghost or a politician’s promises after election day.) A form’s Opacity … Continue reading

Posted in forms, user interface | Tagged , , , , , , , , , , , | 1 Comment