I have searched all over the place, but couldn't find the answer to my problem.
I have a picturebox that I am putting multiple resource images into. They are rectangles, but are smaller than the box.
I want the blank area to show the form's background image.
I first clear the graphics object with the transparent color, then add the images.
But the area around the images is black, not transparent.
How do I stop the black from showing?
Would the form's transparency key have anything to do with it?
Here's a sample my current code:
private void DrawImages()
{
Point pnt1 = new Ponit(10, 10);
Point pnt2 = new Point(10, 50);
Graphics myGraphics = pictureBox1.CreateGraphics();
myGraphics.Clear(Color.Transparent);
myGraphics.DrawImage(Properties.Resources.img1, pnt1);
myGraphics.DrawImage(Propertise.Resources.img2, pnt2);
}
Thanks for your help,
James

New Topic/Question
Reply




MultiQuote






|