IMG2ICONBYTE 24/07/2000 rednuht
webpage : www.jumpstation.co.uk/img2

Disclaimer: Im not responsible for anything ever!

This is a quick hack Java Application to convert image files (see below) to ICON BYTE include files.

As used by the Dreamcast and Nexus systems when reading VMS game files.

Creates all the pallete data as needed.

Only accepts the first 16 colors found, gives warnings for any extras.
Pads out to 16 colors with white if no other colors supplied.

Does not support Animated Icons, hack the source, it should not be difficult.

Usage:
You will need the JDK or JRE to run this application (not applet), both available from http://java.sun.com

JRE:
jre -cp . img2iconbyte INPUT OUTPUT 

JDK:
java img2iconbyte INPUT OUTPUT 

INPUT should be an image file (preferably GIF) (32x32)
OUTPUT should be the name of your file to save the result to.

File formats:
Because the program does not do any color reduction .JPG are are unpredictable due to the large number of colors.


The code:
Don't look at it!
its not pretty but it does work (sometimes)

What do I do with the OUTPUT file?
Use it in you code (copy and paste) or link to it as an include file.
i.e.        .include "myicon.i"

Files in this ZIP file:
img2iconbyte.class - the main 'executable' (see USAGE)
RGBnibble.class		- class for color conversion (needs to be in the same place as the img2iconbyte.class file)
img2iconbyte.java  - the source code so you can hack it around to your needs.
readme.txt      - you are reading it!

 
Have fun and if it does not work do not blame me!




















rednuht@rocketmail.com