java.lang.Object
org.jempeg.empeg.logoedit.BmpToLogo
- public class BmpToLogo
- extends java.lang.Object
Converter program to turn 24bit per pixel grayscale bitmap to 4bpp empeg logo.
To use it compile the file, add it to your CLASSPATH and then run
> java bmpTo4bpp player-type home-logo car-logo output-file
The first parameter should be either 'empeg' or 'rio' and determines if the
empeg should boot with the empeg graphic/animation or the rio graphic/animation.
The second parameter is the home logo. The third parameter is the car logo. The
fourth parameter is the output file to create.
All bitmaps must be 24bit, uncompressed, grayscale images. This program will
warn you if you try to feed it something else. You can convert other types of
images using PhotoShop/Gimp/GraphicConverter/etc. Some software claims 24bit
images are really 32bit so try both.
The output file that this creates still needs to be copied to the empeg with
download.c from the empeg website. The most excelent FAQ has some info on this
process.
Some code derived from javaworld programming sample (see comment below).
All other code written by Mike Comb (mcomb@mac.com) and may be used, modified, and
redistributed by anyone for any reason without prior permission. If modified
code is redistributed please either remove this comment block or note that code
has been modified from original version. Attributions are appreciated.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BmpToLogo
public BmpToLogo()
main
public static void main(java.lang.String[] args)
convertBmpToLogo
public static byte[] convertBmpToLogo(java.io.InputStream _is,
int[] _cutoffs)
throws java.io.IOException