A
Alex Gray
Hi,
I'm trying to make my PictureBox transparent to the BackgroundImage of
the Form, not the BackColor of the form.
Here's what i have:
---------------------------------------------------
this.BackColor = Color.Wheat;
this.gameBackgroundBMP = new
Bitmap(GetType(),"MyForm.backGround.bmp");
this.BackgroundImage = (System.Drawing.Image)gameBackgroundBMP;
this.foo = new Bitmap(GetType(),"MyForm.combatant.bmp");
System.Drawing.Color backColor = foo.GetPixel(1,1);
this.foo.MakeTransparent(backColor);
this.combatant = new System.Windows.Forms.PictureBox();
this.combatant.Image = (System.Drawing.Image)foo;
---------------------------------------------------
The problem is that the combatant.bmp *is* transparent, but i see
Color.Wheat, not the this.BackgroundImage.
Am I doing something fundamentally wrong here?
thanks in advance,
-alex-
I'm trying to make my PictureBox transparent to the BackgroundImage of
the Form, not the BackColor of the form.
Here's what i have:
---------------------------------------------------
this.BackColor = Color.Wheat;
this.gameBackgroundBMP = new
Bitmap(GetType(),"MyForm.backGround.bmp");
this.BackgroundImage = (System.Drawing.Image)gameBackgroundBMP;
this.foo = new Bitmap(GetType(),"MyForm.combatant.bmp");
System.Drawing.Color backColor = foo.GetPixel(1,1);
this.foo.MakeTransparent(backColor);
this.combatant = new System.Windows.Forms.PictureBox();
this.combatant.Image = (System.Drawing.Image)foo;
---------------------------------------------------
The problem is that the combatant.bmp *is* transparent, but i see
Color.Wheat, not the this.BackgroundImage.
Am I doing something fundamentally wrong here?
thanks in advance,
-alex-