Repeat Texture in Rectangle Area

some options and and leave Bounds unchanged

            Rectangle srcrect = new Rectangle(0,0,Texture.Height,Texture.Height);
            Vector2 scale = new Vector2((float)Bounds.Width/srect.Width,(float)Bounds.Height/srect.Height);
            
            spriteBatch.Draw(Texture, Bounds, Color.White * Alpha);
            spriteBatch.Draw(Texture, Bounds, srcrect, Color.White * Alpha);
            spriteBatch.Draw(Texture, Position, srcrect, Color.White * Alpha, 0, Vector2.Zero, scale,SpriteEffects.None, 0);

edit: more more more

1 Like