Wednesday, 4 September 2013

How do I display an image in a MonoGame OpenGL application in Xamarin Studio?

How do I display an image in a MonoGame OpenGL application in Xamarin Studio?

I am writing an application in Xamarin with MonoGame, and am trying to
figure out how to display an image. I know that I can load the image into
a variable with
<variable> = Content.Load<Texture2D>("<imagename>");
and then display it on a rectangle with
spriteBatch.Draw(<image>,<Vector2>,Color.White);
but it then shows the whole Vector2 with white space around the image. How
would I display it without this?

No comments:

Post a Comment