com.jeffpalm.image
Class BitmapImage

java.lang.Object
  extended by com.jeffpalm.image.BitmapImage

public final class BitmapImage
extends java.lang.Object


Nested Class Summary
static class BitmapImage.Point
           
 
Constructor Summary
BitmapImage(int width, int height)
           
 
Method Summary
 BitmapImage.Point addPoint(int x, int y, java.awt.Color c)
           
 int[] body()
           
 void fillBox(int x0, int y0, int x1, int y1, java.awt.Color c)
           
 int height()
           
static void main(java.lang.String[] args)
           
 void setBackground(java.awt.Color background)
           
 java.lang.String toString()
           
 int width()
           
 void write(java.io.File file)
           
 void write(java.io.OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BitmapImage

public BitmapImage(int width,
                   int height)
Method Detail

setBackground

public void setBackground(java.awt.Color background)

width

public int width()

height

public int height()

addPoint

public BitmapImage.Point addPoint(int x,
                                  int y,
                                  java.awt.Color c)

fillBox

public void fillBox(int x0,
                    int y0,
                    int x1,
                    int y1,
                    java.awt.Color c)

body

public int[] body()

write

public void write(java.io.File file)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(java.io.OutputStream out)
           throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception