public class XBMFile
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
byte[] |
bits |
java.io.File |
f |
short |
height |
int |
paddedWidth |
short |
width |
Constructor and Description |
---|
XBMFile(java.io.File fileObj) |
XBMFile(short w,
short h,
byte[] b)
This method leaves all to the caller, by creating a bitmap from
scratch.
|
XBMFile(java.lang.String filename) |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
The main function just prints the bitmap to stdout.
|
void |
printout()
Prints the bitmap to stdout, using * and spaces
|
void |
setBits(java.lang.String tmpString)
Setting the bits based on a string of 0x00 numbers.
|
public java.io.File f
public short width
public short height
public byte[] bits
public int paddedWidth
public XBMFile(java.lang.String filename)
public XBMFile(java.io.File fileObj)
public XBMFile(short w, short h, byte[] b)
h
- Height of bitmap.w
- Width of bitmap.b
- byte string representing the pixels.public void setBits(java.lang.String tmpString)
public void printout()
public static void main(java.lang.String[] args)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details