I want to move labels with images above other labels with images and dont want the ugly black background. So i tried to use this:
Bitmap alienbild = new Bitmap(@"path.png");
public Form1()
{
Color backColour = alienbild.GetPixel(0, 0);
alienbild.MakeTransparent(backColour);
labelalien.Size = new Size(50, 35);
labelalien.Image = alienbild;
}
The picture I am using is also 50x35 and drawn in Paint, if that matters. The background colour of the label is also set to transparent.
But the background is still black, ruining my beautiful pictures drawn in paint. With a mouse.
What do I miss?
Thank you in advance!