How to make a bitmap image cover part of a picturebox control?
-
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 Message
-
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 Message
If by saying "the picturebox control is blocking out part of the bitmap." you mean it shows some of the picture then set the picturebox control's (Image I think) property to Stretch.
-
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 Message
Drawing an image to the form itself will always place the image behind the controls.
Just because we can; does not mean we should.