G
Guest
hello, i am trying to create a form with the shape of a bitmap, like media
player can do. i know that there is a bug with the TransparencyKey property
and 32bpp mode. so i tried the workaround provided on msdn but it doesnt
work. could someone please tell me what im doing wrong? i am using windows
xp. here is my code.
Bitmap bmp = new Bitmap("Body.bmp");
bmp.MakeTransparent(bmp.GetPixel(0, 0));
BackgroundImage = bmp;
this.TransparencyKey = bmp.GetPixel(0, 0);
now this does make the proper color transparent (which is at 0,0 on the
bitmap), but it also makes pure black (RGB(0,0,0). why would it do this?
thanks in advance.
player can do. i know that there is a bug with the TransparencyKey property
and 32bpp mode. so i tried the workaround provided on msdn but it doesnt
work. could someone please tell me what im doing wrong? i am using windows
xp. here is my code.
Bitmap bmp = new Bitmap("Body.bmp");
bmp.MakeTransparent(bmp.GetPixel(0, 0));
BackgroundImage = bmp;
this.TransparencyKey = bmp.GetPixel(0, 0);
now this does make the proper color transparent (which is at 0,0 on the
bitmap), but it also makes pure black (RGB(0,0,0). why would it do this?
thanks in advance.