This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Murach's Java Programming and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to set a Background that not stretch?  RSS feed

Fredrik Andersson
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm trying to set a background image in a app with some code like:

Image2D backgroundImage2D = new Image2D( Image2D.RGB, backgroundImage );

In paint I paint it like:

graphics3D.render(world, worldTransform);

But the problem is that the image is stretched over the screen. I would like it to stay in center and not be stretched.

So if you guys got any ideas please let me know.

Best regards
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!