TODO feature: Better quality pictures in symbol list

This commit is contained in:
Anton Mukhin
2025-05-21 12:38:27 +03:00
parent f33b107fdb
commit 19c12754ef
2 changed files with 8 additions and 2 deletions

View File

@@ -451,9 +451,14 @@ namespace McBitFont {
bmp.SetPixel(i + imin, j + jmin, c); bmp.SetPixel(i + imin, j + jmin, c);
} }
} }
var sizedBMP = new Bitmap(bmp, new Size(50, 50)); Bitmap sbmp = new Bitmap(50, 50);
using (Graphics g = Graphics.FromImage(sbmp)) {
g.InterpolationMode = InterpolationMode.NearestNeighbor;
g.PixelOffsetMode = PixelOffsetMode.Half;
g.DrawImage(bmp, 0, 0, 50, 50);
}
bmp.Dispose(); bmp.Dispose();
return sizedBMP; return sbmp;
} }
private void dotPanel_Paint(object sender, PaintEventArgs e) { private void dotPanel_Paint(object sender, PaintEventArgs e) {

View File

@@ -1,5 +1,6 @@
Application: Application:
V Migrate from .Net Framework 4.7 to .NET 9 V Migrate from .Net Framework 4.7 to .NET 9
V Better quality pictures in symbol list
Functionality: Functionality:
- Context menu in symbol navigator - Context menu in symbol navigator