<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.awt.image.ColorModel
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.awt.image.html">This Package</a>  <a href="java.awt.image.AreaAveragingScaleFilter.html#_top_">Previous</a>  <a href="java.awt.image.CropImageFilter.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.awt.image.ColorModel
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.awt.image.ColorModel
</pre>
<hr>
<dl>
  <dt> public abstract class <b>ColorModel</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
</dl>
A class that encapsulates the methods for translating from pixel values
 to alpha, red, green, and blue color components for an image.  This
 class is abstract.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.image.IndexColorModel.html#_top_">IndexColorModel</a>, <a href="java.awt.image.DirectColorModel.html#_top_">DirectColorModel</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#pixel_bits"><b>pixel_bits</b></a>
  <dd> 
</dl>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ColorModel(int)"><b>ColorModel</b></a>(int)
  <dd>  Constructs a ColorModel which describes a pixel of the specified
 number of bits.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#finalize()"><b>finalize</b></a>()
  <dd>  Called by the garbage collector on an object when garbage collection
 determines that there are no more references to the object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getAlpha(int)"><b>getAlpha</b></a>(int)
  <dd>  The subclass must provide a function which provides the alpha
 color compoment for the specified pixel.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getBlue(int)"><b>getBlue</b></a>(int)
  <dd>  The subclass must provide a function which provides the blue
 color compoment for the specified pixel.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getGreen(int)"><b>getGreen</b></a>(int)
  <dd>  The subclass must provide a function which provides the green
 color compoment for the specified pixel.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getPixelSize()"><b>getPixelSize</b></a>()
  <dd>  Returns the number of bits per pixel described by this ColorModel.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getRed(int)"><b>getRed</b></a>(int)
  <dd>  The subclass must provide a function which provides the red
 color compoment for the specified pixel.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getRGB(int)"><b>getRGB</b></a>(int)
  <dd>  Returns the color of the pixel in the default RGB color model.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getRGBdefault()"><b>getRGBdefault</b></a>()
  <dd>  Return a ColorModel which describes the default format for
 integer RGB values used throughout the AWT image interfaces.
</dl>
<a name="variables"></a>
<h2>
  <img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="pixel_bits"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>pixel_bits</b>
<pre>
 protected int pixel_bits
</pre>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="ColorModel"></a>
<a name="ColorModel(int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>ColorModel</b>
<pre>
 public ColorModel(int bits)
</pre>
<dl>
  <dd> Constructs a ColorModel which describes a pixel of the specified
 number of bits.
<p>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="getRGBdefault()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getRGBdefault"><b>getRGBdefault</b></a>
<pre>
 public static <a href="#_top_">ColorModel</a> getRGBdefault()
</pre>
<dl>
  <dd> Return a ColorModel which describes the default format for
 integer RGB values used throughout the AWT image interfaces.
 The format for the RGB values is an integer with 8 bits
 each of alpha, red, green, and blue color components ordered
 correspondingly from the most significant byte to the least
 significant byte, as in:  0xAARRGGBB
<p>
</dl>
<a name="getPixelSize()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getPixelSize"><b>getPixelSize</b></a>
<pre>
 public int getPixelSize()
</pre>
<dl>
  <dd> Returns the number of bits per pixel described by this ColorModel.
<p>
</dl>
<a name="getRed(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getRed"><b>getRed</b></a>
<pre>
 public abstract int getRed(int pixel)
</pre>
<dl>
  <dd> The subclass must provide a function which provides the red
 color compoment for the specified pixel.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> The red color component ranging from 0 to 255
  </dl></dd>
</dl>
<a name="getGreen(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getGreen"><b>getGreen</b></a>
<pre>
 public abstract int getGreen(int pixel)
</pre>
<dl>
  <dd> The subclass must provide a function which provides the green
 color compoment for the specified pixel.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> The green color component ranging from 0 to 255
  </dl></dd>
</dl>
<a name="getBlue(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getBlue"><b>getBlue</b></a>
<pre>
 public abstract int getBlue(int pixel)
</pre>
<dl>
  <dd> The subclass must provide a function which provides the blue
 color compoment for the specified pixel.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> The blue color component ranging from 0 to 255
  </dl></dd>
</dl>
<a name="getAlpha(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getAlpha"><b>getAlpha</b></a>
<pre>
 public abstract int getAlpha(int pixel)
</pre>
<dl>
  <dd> The subclass must provide a function which provides the alpha
 color compoment for the specified pixel.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> The alpha transparency value ranging from 0 to 255
  </dl></dd>
</dl>
<a name="getRGB(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getRGB"><b>getRGB</b></a>
<pre>
 public int getRGB(int pixel)
</pre>
<dl>
  <dd> Returns the color of the pixel in the default RGB color model.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="#getRGBdefault">getRGBdefault</a>
  </dl></dd>
</dl>
<a name="finalize()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="finalize"><b>finalize</b></a>
<pre>
 public void finalize()
</pre>
<dl>
  <dd> Called by the garbage collector on an object when garbage collection
 determines that there are no more references to the object.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#finalize()">finalize</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.awt.image.html">This Package</a>  <a href="java.awt.image.AreaAveragingScaleFilter.html#_top_">Previous</a>  <a href="java.awt.image.CropImageFilter.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
