private void PictureBoxTilesetMouseMove(object sender, MouseEventArgs e)
{
if (Image != null)
{
int x = e.X.Clamp(0, Image.Width);
int y = e.Y.Clamp(0, Image.Height);
if (_mouseDown && _selectionActive)
{
_endPoint.X = x;
_endPoint.Y = y;
}
this.RefreshSelection();
}
}