dotnet compact framework:
[quoted text, click to view] On 11 Abr, 14:41, "E Lee" <e...@pinson3.com> wrote:
> Is there a way to create labels that allow the background image to show
> through, true transparency? =A0I want to add a label to a picturebox image=
but
> 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 =3D new StringFormat();
sfLeft.Alignment =3D StringAlignment.Near;
sfLeft.LineAlignment =3D StringAlignment.Center;
Rectangle drawBounds =3D Picture1.Bounds;
drawBounds.X -=3D Picture1.Location.X - 2;
drawBounds.Y -=3D 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