public virtual int GetRegionWidth() { int result = MathUtils.Round((widthRatio - xOff) * texture.GetTextureWidth()); return(result > 0 ? result : -result); }