Is there a way to create labels that allow the background image to show
through, true transparency? I want to add a label to a picturebox imagebut
not show the label boundaries, blocking out the image.
-E
Hi, yes it is?
Code below:
//Add EventHanler to your picture1 Paint
private void Picture1_Paint(object sender, PaintEventArgs e)
{
StringFormat sfLeft = new StringFormat();
sfLeft.Alignment = StringAlignment.Near;
sfLeft.LineAlignment = StringAlignment.Center;
Rectangle drawBounds = Picture1.Bounds;
drawBounds.X -= Picture1.Location.X - 2;
drawBounds.Y -= Picture1.Location.Y;
e.Graphics.DrawString("TEXT TO WRITE", new Font("Tahoma",
9, FontStyle.Regular), new SolidBrush(Color.White), drawBounds,
sfLeft);
}
best Regards,
Armando Rocha
Portugal