From 19c12754ef84c993359b496132214696e42b7c50 Mon Sep 17 00:00:00 2001 From: Anton Mukhin Date: Wed, 21 May 2025 12:38:27 +0300 Subject: [PATCH] TODO feature: Better quality pictures in symbol list --- McBitFont/Form1.cs | 9 +++++++-- TODO.txt | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/McBitFont/Form1.cs b/McBitFont/Form1.cs index 51e5c21..db4f551 100644 --- a/McBitFont/Form1.cs +++ b/McBitFont/Form1.cs @@ -451,9 +451,14 @@ namespace McBitFont { 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(); - return sizedBMP; + return sbmp; } private void dotPanel_Paint(object sender, PaintEventArgs e) { diff --git a/TODO.txt b/TODO.txt index ccf8c6a..ef1641b 100644 --- a/TODO.txt +++ b/TODO.txt @@ -1,5 +1,6 @@ Application: V Migrate from .Net Framework 4.7 to .NET 9 +V Better quality pictures in symbol list Functionality: - Context menu in symbol navigator