SpriteMapping tool added
Created first implementation of a spritemap making app!
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user