Support for 16x16px per tile and river editor (#668)

* Upgrade to .NET 8 + Nugets

* Add support for tile 16x16px instead 1px

* Rivers except 2B

* River2B
This commit is contained in:
Alca259
2025-07-28 07:02:34 +02:00
committed by GitHub
parent e0e0656d6e
commit a20bd1c419
15 changed files with 251 additions and 58 deletions

View File

@@ -726,11 +726,11 @@ private void Menu_SavePNG_Click(object sender, EventArgs e)
}
else if (!Menu_SavePNGItems.Checked)
{
PB_Map.BackgroundImage.Save(sfd.FileName, ImageFormat.Png);
PB_Map.BackgroundImage!.Save(sfd.FileName, ImageFormat.Png);
}
else
{
var img = (Bitmap)PB_Map.BackgroundImage.Clone();
var img = (Bitmap)PB_Map.BackgroundImage!.Clone();
using var gfx = Graphics.FromImage(img);
gfx.DrawImage(PB_Map.Image, new Point(0, 0));
img.Save(sfd.FileName, ImageFormat.Png);