2632 {
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648 spriteBatch.Draw(texture, position, (Rectangle?)
new Rectangle(0, 0,
edgeWidth, texture.Height), color);
2649 spriteBatch.Draw(texture,
new Vector2(position.X + (
float)
edgeWidth, position.Y), (Rectangle?)
new Rectangle(
edgeWidth +
edgeShove, 0, texture.Width - (
edgeWidth +
edgeShove) * 2, texture.Height), color, 0
f, Vector2.Zero,
new Vector2((width - (
float)(
edgeWidth * 2)) / (
float)(texture.Width - (
edgeWidth +
edgeShove) * 2), 1
f), (SpriteEffects)0, 0
f);
2650 spriteBatch.Draw(texture,
new Vector2(position.X + width - (
float)
edgeWidth, position.Y), (Rectangle?)
new Rectangle(texture.Width -
edgeWidth, 0,
edgeWidth, texture.Height), color);
2651 }