Class awt.DIBitmap
All Packages    This Package    Previous    Next

Class awt.DIBitmap

java.lang.Object
   |
   +----browser.Observable
           |
           +----awt.DIBitmap

public class DIBitmap
extends Observable
This class holds a device independant 8 bit deep image and its colormap.
Version:
1.9 14 Mar 1995
Author:
Patrick Naughton

blue
generation
green
height
num_colors
raster
red
trans_index
width

DIBitmap()
This constructor is dangerous in that it creates a DIBitmap with invalid fields.
DIBitmap(int, int, int, byte[], byte[], byte[], byte[])
This constructor takes the passed in raster as the correct bits for an image.
DIBitmap(int, int)
This constructor allocates the space for an image of the specified size.

touch()
Touches this bitmap, ie, if it is cached anywhere it must be reloaded.

width
  public int width
height
  public int height
num_colors
  public int num_colors
red
  public byte red[]
green
  public byte green[]
blue
  public byte blue[]
raster
  public byte raster[]
trans_index
  public int trans_index
generation
  public int generation

DIBitmap
  public DIBitmap()
This constructor is dangerous in that it creates a DIBitmap with invalid fields. However, it is needed by subclassers who cannot provide the necessary information at construction time, since they are reading the image from a file, for example.

DIBitmap

  public DIBitmap(int w,
                  int h,
                  int n,
                  byte r[],
                  byte g[],
                  byte b[],
                  byte d[])
This constructor takes the passed in raster as the correct bits for an image.

DIBitmap

  public DIBitmap(int w,
                  int h)
This constructor allocates the space for an image of the specified size. The contents of the image and colormap are undefined.

touch
  public void touch()
Touches this bitmap, ie, if it is cached anywhere it must be reloaded.


All Packages    This Package    Previous    Next