Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8668141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:08:26+00:00 2026-06-12T18:08:26+00:00

I am trying to make some kind of map maker, using the old 2D

  • 0

I am trying to make some kind of map maker, using the old 2D style of games such as Final Fantasy 4. Basically they had everything set up in a grid where each square on the grid might have taken 16×16 or 32×32 pixels.

I would like to start out small, and get the main things down first. Such as generating a map which could be, say, 128×128. This means, that I should be able to feed the program an array of numbers representing the different tiles available, and then the program should make a new picture by placing the tiles as the array specifies (So the one in Index 0 will be placed at 0,0 etc).

I plan to show the picture when I am done, but that should be easy as pie.

I’ve been looking around for a solution and all I could find was merging pictures on top of each other (as in layers on top of each other), rather than side by side, so can any one point me in the right direction? I’d like it if I didn’t have to rely on 3rd party libraries, as this is more of a learning experience than practical application 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T18:08:27+00:00Added an answer on June 12, 2026 at 6:08 pm

    First, create the output BufferedImage to be the size you need.

    BufferedImage image = new BufferedImage(width, height, imageType);

    Then, get the Graphics2D object from the image and start drawing the smaller image in the places they need to be in the resulting image:

    Graphics2D g2 = image.createGraphics();
    for (BufferedImage img : images) {
      g2.drawImage(img, x, y, null);
    }
    

    Then, you can save the image to the desired format: jpg, png or gif.

    ImageIO.write(image, "jpg", file);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make some kind of top for some game stadistics Table it's
I'm trying to make some text bold using HTML, but I'm struggling to get
I'm trying to make some utils for using with sqlite databases. For that I
I'm trying to make some kind of shape in wpf, which does resize itself
I'm trying to make some kind of pagination system. Each page has a maximum
i am trying to make some kind of reflex like game for android, which
I m trying to make some kind of game with c#, its loto game
Again, I'm trying to make a simple program. It will read some kind of
I'm trying to make some kind of strange polymorphism on C++: I have two
I am trying to make some kind of animation and I want it to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.