title: Why spritebatch.Draw shows blank output?
body: <p>In my code below, I think it's correctly done. But idk, the image called by _bg is does not shown up. The screen only show White. Weirdly, there is 0 error message when I run it.</p>
  
  <p>(The RenderTarget2D is for default-ing my view into landscape mode)</p>
  
  <pre><code>using Microsoft.Xna.Framework;
  using Microsoft.Xna.Framework.Graphics;
  
  namespace GameName2
  {
      /// &lt;summary&gt;
      /// This is the main type for your game
      /// &lt;/summary&gt;
      public class Game1 : Game
      {
          GraphicsDeviceManager _graphics;
          SpriteBatch _spriteBatch;
          Texture2D _bg;
          RenderTarget2D finalImageTarget;
  
          public Game1()
          {
              _graphics = new GraphicsDeviceManager(this);
              Content.RootDirectory = "Content";
          }
  
          /// &lt;summary&gt;
          /// Allows the game to perform any initialization it needs to before starting to run.
          /// This is where it can query for any required services and load any non-graphic
          /// related content.  Calling base.Initialize will enumerate through any components
          /// and initialize them as well.
          /// &lt;/summary&gt;
          protected override void Initialize()
          {
              // TODO: Add your initialization logic here
  
              base.Initialize();
          }
  
          /// &lt;summary&gt;
          /// LoadContent will be called once per game and is the place to load
          /// all of your content.
          /// &lt;/summary&gt;
          protected override void LoadContent()
          {
              // Create a new SpriteBatch, which can be used to draw textures.
              _spriteBatch = new SpriteBatch(GraphicsDevice);
  
              _bg = Content.Load&lt;Texture2D&gt;(@"background");
              finalImageTarget = new RenderTarget2D(GraphicsDevice, 1280, 720);
              // TODO: use this.Content to load your game content here
          }
  
          /// &lt;summary&gt;
          /// UnloadContent will be called once per game and is the place to unload
          /// all content.
          /// &lt;/summary&gt;
          protected override void UnloadContent()
          {
              // TODO: Unload any non ContentManager content here
          }
  
          /// &lt;summary&gt;
          /// Allows the game to run logic such as updating the world,
          /// checking for collisions, gathering input, and playing audio.
          /// &lt;/summary&gt;
          /// &lt;param name="gameTime"&gt;Provides a snapshot of timing values.&lt;/param&gt;
          protected override void Update(GameTime gameTime)
          {
              // TODO: Add your update logic here
  
              base.Update(gameTime);
          }
  
          /// &lt;summary&gt;
          /// This is called when the game should draw itself.
          /// &lt;/summary&gt;
          /// &lt;param name="gameTime"&gt;Provides a snapshot of timing values.&lt;/param&gt;
          protected override void Draw(GameTime gameTime)
          {
              GraphicsDevice.SetRenderTarget(finalImageTarget);
              GraphicsDevice.Clear(Color.White);
  
              // TODO: Add your drawing code here
              _spriteBatch.Begin();
              _spriteBatch.Draw(_bg,
                  new Rectangle(0, 0, Window.ClientBounds.Width, Window.ClientBounds.Height),
                  null,
                  Color.White,
                  0,
                  Vector2.Zero,
                  SpriteEffects.None,
                  0);
              _spriteBatch.End();
  
              GraphicsDevice.SetRenderTarget(null);
              _spriteBatch.Begin();
              _spriteBatch.Draw(finalImageTarget,
                      new Vector2(720,0),
                      null,
                      Color.White,
                      MathHelper.PiOver2,
                      Vector2.Zero,
                      Vector2.One,
                      SpriteEffects.None,
                      0f);
              _spriteBatch.End();
  
              base.Draw(gameTime);
  
  
          }
      }
  }
  </code></pre>
  
  <p>I use xnb file. And I put it in Content folder in the project. I've set 'Content' and 'Copy if newer' to the file property.</p>
  
  <p>This is the .png file I use before converted into xnb : <a href="https://imageshack.us/scaled/large/15/loadingo.png" rel="nofollow">https://imageshack.us/scaled/large/15/loadingo.png</a></p>
  
  <p>Or maybe the problem is in my .png file?</p>
  
  <p>Any idea? Thanks</p>