RDaugherty
New member
- Joined
- Dec 14, 2016
- Messages
- 2
- Programming Experience
- 1-3
So I'm working on a type of dungeon crawler/RPG game for fun and I want to create the common "map exploration" technique. I have a PictureBox and a generic map used.
I've figured out how to use the FillRectangle and did this;
Which works great to do the transparent box over it, but now the hang up is how do I remove lets say a 20x20 box of the FillRectangle as I need to?
Is there anyway to do this?
Thanks!
I've figured out how to use the FillRectangle and did this;
VB.NET:
Private myGraphics As Graphics
Private myBitmap As Bitmap
VB.NET:
myBitmap = mapBox.BackgroundImage
myGraphics = Graphics.FromImage(myBitmap)
myGraphics.FillRectangle(New SolidBrush(Color.FromArgb(180, System.Drawing.Color.Black)), 0, 0, 3000, 3000)
mapBox.Image = myBitmap
mapBox.SizeMode = PictureBoxSizeMode.StretchImage
Is there anyway to do this?
Thanks!
Last edited by a moderator: