How to make some portion of Picture box transparent

T

TusharP

Hi friends,
I want to make some portion of image transparent.
I written following code in Paint event of picturebox
Bitmap bmpPic = new
Bitmap(picHeader.Image,picHeader.Width,picHeader.Height);

Color backColor = bmpPic.GetPixel(1,1);

bmpPic.MakeTransparent(backColor);

picHeader.BackgroundImage = bmpPic;



But it is not working please help me

Tushar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top