Jump to content

  • Log In with Google      Sign In   
  • Create Account

Scaling Tile Sizes to Window Size


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 CaptainKraft   Members   -  Reputation: 266

Like
0Likes
Like

Posted 17 July 2012 - 02:54 PM

I've got a simple engine running that allows me to display tiles in an 800 x 648 window. Each tile is 32 x 32, but the look isn't what I'm going for.

What are some simple ways to scale the images to fit a bigger window or to sort of "zoom" in on the tiles so they are bigger than they appear.

I really want the pixel art look, and I'm not sure how to achieve this.

Thanks!

Sponsor:

#2 ApochPiQ   Moderators   -  Reputation: 15698

Like
0Likes
Like

Posted 17 July 2012 - 03:08 PM

How are you rendering the tiles? What language/API/framework/etc.?

#3 CaptainKraft   Members   -  Reputation: 266

Like
0Likes
Like

Posted 17 July 2012 - 03:26 PM

I'm using Java. No added API. Just the awt and swing that come with it.

#4 ApochPiQ   Moderators   -  Reputation: 15698

Like
1Likes
Like

Posted 17 July 2012 - 03:49 PM

I'm not deeply familiar with AWT, but something like this should work: Shrinking and Stretching Images

Basically, you want to draw the image at 2x magnification (or some other factor) so that it looks more pixelated, assuming I understand the effect you're going for correctly :-)

#5 CaptainKraft   Members   -  Reputation: 266

Like
0Likes
Like

Posted 17 July 2012 - 04:45 PM

That's exactly what I was going for. Thanks a bunch

Time to start fiddling...




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS