public void Resize(int width, int height)
{
this.width = width;
this.height = height;
if (isHorizontal)
{
stretchAmount = (width - (mainLength * 2));
}
else
{
stretchAmount = (height - (mainLength * 2));
}
if (stretchAmount < 0)
{
stretchAmount = 0;
}
}