mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-12 21:01:57 +00:00
Initial commit
This commit is contained in:
24
MinecraftUSkinEditor/InterpolationPictureBox.cs
Normal file
24
MinecraftUSkinEditor/InterpolationPictureBox.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user