Jump to content

I waana dislplay a image in game


Recommended Posts

  • 3 weeks later...

Put this in your code. Not in any functions or anything.

Texture texture;

Then put this in your start up code.

texture = Resources.GetTexture("texture.png");

And this in your PerFrameDrawing function.

e.Graphics.DrawSprite(texture, new RectangleF(0, 0, 1920, 1080));

Change what you need to, like where the texture file is, and the dimensions and stuff (dimensions are those numbers in the DrawSprite code.)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.