Files
quro-animation-tools/SpriteMapEditor/PictureBoxWithInterpolationMode.cs
T
quinnvoker 46959bde2e SpriteMapping tool added
Created first implementation of a spritemap making app!
2018-11-22 12:56:07 -08:00

21 lines
534 B
C#

using System.Drawing.Drawing2D;
using System.Windows.Forms;
/// <summary>
/// Inherits from PictureBox; adds Interpolation Mode Setting
/// </summary>
namespace SpriteMapEditor
{
public class PictureBoxWithInterpolationMode : PictureBox
{
public InterpolationMode InterpolationMode { get; set; }
protected override void OnPaint(PaintEventArgs paintEventArgs)
{
paintEventArgs.Graphics.InterpolationMode = InterpolationMode;
base.OnPaint(paintEventArgs);
}
}
}