20 lines
529 B
C#
20 lines
529 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing.Drawing2D;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Game_of_Life
|
|
{
|
|
internal class PictureBoxWithInterpolationMode : PictureBox
|
|
{
|
|
public InterpolationMode InterpolationMode { get; set; }
|
|
|
|
protected override void OnPaint(PaintEventArgs paintEventArgs)
|
|
{
|
|
paintEventArgs.Graphics.InterpolationMode = InterpolationMode;
|
|
base.OnPaint(paintEventArgs);
|
|
}
|
|
}
|
|
}
|