• Welcome to the new COTI server. We've moved the Citizens to a new server. Please let us know in the COTI Website issue forum if you find any problems.
  • We, the systems administration staff, apologize for this unexpected outage of the boards. We have resolved the root cause of the problem and there should be no further disruptions.

Seeking Java solution: Creating sector dot map images...

Flynn

SOC-14 1K
Good morning, All,

I am seeking Java code that I can integrate into my personal world building application that will produce a jpeg, png, or gif file of a dot map for a sector. I've never worked with graphic creation before, so I am at a loss as to even how to begin on this one.

If anyone can help me out, it would be greatly appreciated.

Thank you very much for your time,
Flynn
 
I usually use perl, and the modules GD and/or ImageMagick. That is how I make the LBBs, the hexmaps, the Ine Givar wall and the sector dotmaps at my site. (These produce gifs, but could be set to make any other format.)

For java You can probably use JMagick:
http://www.yeo.id.au/jmagick/

I always thought You used perl?
 
I love J Greely's perl application, sec2pdf, and use that exclusively (before, I used robject's perl app, so yeah, I use perl). However, I don't know how to program in that. :(

Okay, so what do I need in order to create the sector dotmaps like you have on your site? Do you have a perl script I could use? Can it do a single sector, and can it do multiple sectors?

Thanks in advance,
Flynn
 
The code I have is a bit more complex than what You need, since my code reads the galactic database and not a single sec file.

Maybe I can do something for You this weekend. I'll send You an e-mail. Later we can post our result here.
 
Feel like putting your source up on your page? I have Galactic and might be very interested
 
Ditto. That will work for what I have in mind. That way, I can do either a single sector or an entire galaxy. ;)

Thanks a lot, Berka, for your responses,
Flynn
 
Now, I have made it a bit more useful, with an option to add colors for up to six of Your own al codes.
 
Back
Top