I created a bitmap object and used it to draw a 2D terrain programatically on a form. Then I also added a picturebox control to display an image near the terrain.
However, the picturebox control is blocking out part of the bitmap.
How do I make the bitmap ';cover'; part of the picturebox control instead?
Is there a ';layers'; method which the form can use to draw one bitmap over another control?
Edit/Delete MessageHow to make a bitmap cover part of a picturebox control? [C#]?
Try loading the picture into a panel rather than directly onto the form itself. Then, you can use the BringToFront() method of the panel to move it on top of the PictureBox.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment