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

Re: How to make some portion of Picture box transparent by hirf-spam-me-here

hirf-spam-me-here
Mon Aug 09 13:46:08 CDT 2004

* "TusharP" <tushar.patil@solversa.com> scripsit:
> 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;

<URL:http://www.bobpowell.net/region_from_bitmap.htm>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>