Enhance type icon downscale

No need to override the interpolation settings, looks way better.
This commit is contained in:
Kurt 2024-05-24 12:01:06 -05:00
parent a79581e965
commit 0be5581638

View file

@ -1763,8 +1763,6 @@ public sealed partial class PKMEditor : UserControl, IMainEditor
int shiftX = 0;
if (icon is not null)
{
g.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.Half;
g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor;
g.DrawImage(icon, e.Bounds with { Width = e.Bounds.Height }); // Left side of the rectangle.
shiftX += e.Bounds.Height + 1;
}