Class PGPF
java.lang.Object
|
+--PGPF
- public class PGPF
- extends java.lang.Object
Reads image files and writes single-frame, uncompressed, 16-bit PGPocket images,
complete with thumbnails (scaled and dithered from the main image).
Notes:
The direct color layout is 5-red, 6-green, 5 blue.
The system palette was (painstakingly) reverse-engineered from
this page.
I would implement compression if it weren't such a brain-dead scheme.
Constructor Summary |
PGPF()
|
Method Summary |
PalmDB |
convert(java.lang.String name,
int[] pixels,
int width,
int height)
Converts a single image of any size to an uncompressed PGPF database with
thumbnail scaled from the center of the image. |
static void |
main(java.lang.String[] args)
Converts all image files named in the arguments to databases, using the original's name
(with the ".prc" extension) for each. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PGPF
public PGPF()
main
public static void main(java.lang.String[] args)
- Converts all image files named in the arguments to databases, using the original's name
(with the ".prc" extension) for each.
convert
public PalmDB convert(java.lang.String name,
int[] pixels,
int width,
int height)
- Converts a single image of any size to an uncompressed PGPF database with
thumbnail scaled from the center of the image.