public void DrawNinePatchRect(NinePatchImage image, Rectangle target, Color color, float scale)
        {
            if (image != null)
            {
                Texture = image.Texture;
                SpriteBatchIsNeeded();

                image.Draw(_spriteBatch, target, new Vector2(scale), color);
            }
            else
            {
                DrawRectangle(target, color);
            }
        }
 public static void Draw(this SpriteBatch spriteBatch, NinePatchImage ninePatch, Rectangle rectangle, Color color)
 {
     ninePatch.Draw(null, spriteBatch, rectangle, color);
 }