All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.PixelArray2D

java.lang.Object
   |
   +----java.media.j3d.PixelArray
           |
           +----java.media.j3d.PixelArray2D

public class PixelArray2D
extends PixelArray
This class defines a 2D array of pixels. This is used for texture images and background images.


Constructor Index

 o PixelArray2D(int, int, int)
Constructs a 2D pixel array object using the specified format, width, and height.

Method Index

 o setPixelData(Image)
Copies the specified AWT image to this 2D pixel array object.

Constructors

 o PixelArray2D
 public PixelArray2D(int format,
                     int width,
                     int height)
Constructs a 2D pixel array object using the specified format, width, and height.

Parameters:
format - the pixel array format, one of: FORMAT_RGB, FORMAT_RGBA, etc.
width - the number of columns of pixels in this array
height - the number of rows of pixels in this array
Throws: IllegalArgumentException
if format is invalid or width/height are non-positive.

Methods

 o setPixelData
 public void setPixelData(Image image)
Copies the specified AWT image to this 2D pixel array object. NOTE: the image must be completely loaded before calling this function.

Parameters:
image - AWT image object containing the image

All Packages  Class Hierarchy  This Package  Previous  Next  Index