All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.PixelArray3D

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

public class PixelArray3D
extends PixelArray
This class defines a 3D array of pixels. This is used for texture images.


Constructor Index

 o PixelArray3D(int, int, int, int)
Constructs a 3D pixel array object using the specified format, width, height, and depth.

Method Index

 o setPixelData(Image[])
Copies the specified array of AWT images to this object.

Constructors

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

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
depth - the number of 2D slices in this image
Throws: IllegalArgumentException
if format is invalid or either of width/height/depth is non-positive.

Methods

 o setPixelData
 public void setPixelData(Image images[])
Copies the specified array of AWT images to this object. NOTE: all of the images must be completely loaded before calling this function.

Parameters:
images - array of AWT image objects each containing an image

All Packages  Class Hierarchy  This Package  Previous  Next  Index