Monday, September 20, 2010

Make Your Bitmaps Transparent | C#

Scenario #1: Comparing with Visual C++, It is easy to make a bitmap (.jpeg, .bmp and .png) in C#. Code to make a bitmap back ground transparent on a picture control:
Two things here, picBox (Picture Box control instance) back(ground) color is setting to Transparent. And Making the BmpOne (Bitmap object) transparent.

Scenario #2: Code to make the ImageList images transparent:
iconsList (Of type ImageList) contains two icons here. This iconsList can be leveraged to set images on ListView controls, Radio Buttons and Labels etc.

No comments :

Post a Comment