7,655
社区成员
发帖
与我相关
我的任务
分享
GraphicsDevice.Clear(Color.CornflowerBlue); //GraphicsDevice.Clear(Color.CornflowerBlue);用于擦除当前屏幕内的图像
spriteBatch.Begin();
spriteBatch.Draw(img, new Rectangle(50, 50, 400, 400), Color.White);
spriteBatch.DrawString(Font, "hello", new Vector2(40, 40), Color.Red);
spriteBatch.End();