Still not working well but a lot more does

This commit is contained in:
2023-04-27 11:18:53 +02:00
parent d1eb1720a2
commit 23de653bde
5 changed files with 137 additions and 39 deletions

View File

@@ -111,8 +111,13 @@ namespace Test_Merge
}
public virtual Bitmap Draw()
{
Image img = ZoneImage;
Image img = Image;
Graphics g = Graphics.FromImage(img);
foreach (Zone z in Zones)
{
Rectangle newBounds = new Rectangle(z.Bounds.X,z.Bounds.Y + Bounds.Y,z.Bounds.Width,z.Bounds.Height);
g.DrawRectangle(Pens.Red, newBounds);
}
foreach (Window w in Windows)
{
g.DrawRectangle(Pens.Blue, w.Bounds);