mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-22 09:55:29 +00:00
25 lines
666 B
C#
25 lines
666 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Drawing.Drawing2D;
|
|
using System.Windows.Forms;
|
|
|
|
namespace MinecraftUSkinEditor
|
|
{
|
|
/// <summary>
|
|
/// Inherits from PictureBox; adds Interpolation Mode Setting
|
|
/// </summary>
|
|
public class PictureBoxWithInterpolationMode : PictureBox
|
|
{
|
|
public InterpolationMode InterpolationMode { get; set; }
|
|
|
|
protected override void OnPaint(PaintEventArgs paintEventArgs)
|
|
{
|
|
paintEventArgs.Graphics.InterpolationMode = InterpolationMode;
|
|
base.OnPaint(paintEventArgs);
|
|
}
|
|
}
|
|
}
|