All Packages Class Hierarchy This Package Previous Next Index
Class java.media.j3d.PixelArray
java.lang.Object
|
+----java.media.j3d.PixelArray
- public abstract class PixelArray
- extends Object
Abstract class that is used to define 2D or 3D PixelArray classes.
This is used for texture images and background images.
-
FORMAT_CHANNEL8
- Specifies that each pixel contains 1 8-bit channel: it can be
used for only luminance or only alpha or only intensity
-
FORMAT_LUM4_ALPHA4
- Specifies that each pixel contains 2 4-bit channels:one each
for luminance and alpha.
-
FORMAT_LUM8_ALPHA8
- Specifies that each pixel contains 2 8-bit channels:one each
for luminance and alpha
-
FORMAT_R3_G3_B2
- Specifies that each pixel contains 2 3-bit channels:one each
for red, green, and 1 2-bit channel for blue.
-
FORMAT_RGB
- Specifies that each pixel contains 3 8-bit channels:one each
for red, green, blue.
-
FORMAT_RGB4
- Specifies that each pixel contains 3 4-bit channels:one each
for red, green, blue.
-
FORMAT_RGB5
- Specifies that each pixel contains 3 5-bit channels:one each
for red, green, blue.
-
FORMAT_RGB5_A1
- Specifies that each pixel contains 3 5-bit channels:one each
for red, green, blue and 1 1-bit channel for alpha
-
FORMAT_RGB8
- Specifies that each pixel contains 3 8-bit channels:one each
for red, green, blue.
-
FORMAT_RGBA
- Specifies that each pixel contains 4 8-bit channels:one each
for red, green, blue, alpha.
-
FORMAT_RGBA4
- Specifies that each pixel contains 4 4-bit channels:one each
for red, green, blue, alpha.
-
FORMAT_RGBA8
- Specifies that each pixel contains 4 8-bit channels:one each
for red, green, blue, alpha.
-
PixelArray()
- Constructs a PixelArray object.
-
getDuplicateOnCloneTree()
- Returns this node's duplicateOnCloneTree value.
-
getPixelData(byte[])
- Gets a copy of the pixel data in this object.
-
setDuplicateOnCloneTree(boolean)
- Sets this node's duplicateOnCloneTree value.
-
setPixelData(byte[])
- Copies the specified pixel data to this object.
FORMAT_RGB
public static final int FORMAT_RGB
- Specifies that each pixel contains 3 8-bit channels:one each
for red, green, blue. Same as FORMAT_RGB_8;
FORMAT_RGBA
public static final int FORMAT_RGBA
- Specifies that each pixel contains 4 8-bit channels:one each
for red, green, blue, alpha. Same as FORMAT_RGBA_8;
FORMAT_RGB8
public static final int FORMAT_RGB8
- Specifies that each pixel contains 3 8-bit channels:one each
for red, green, blue. Same as FORMAT_RGB;
FORMAT_RGBA8
public static final int FORMAT_RGBA8
- Specifies that each pixel contains 4 8-bit channels:one each
for red, green, blue, alpha. Same as FORMAT_RGBA;
FORMAT_RGB5
public static final int FORMAT_RGB5
- Specifies that each pixel contains 3 5-bit channels:one each
for red, green, blue.
FORMAT_RGB5_A1
public static final int FORMAT_RGB5_A1
- Specifies that each pixel contains 3 5-bit channels:one each
for red, green, blue and 1 1-bit channel for alpha
FORMAT_RGB4
public static final int FORMAT_RGB4
- Specifies that each pixel contains 3 4-bit channels:one each
for red, green, blue.
FORMAT_RGBA4
public static final int FORMAT_RGBA4
- Specifies that each pixel contains 4 4-bit channels:one each
for red, green, blue, alpha.
FORMAT_LUM4_ALPHA4
public static final int FORMAT_LUM4_ALPHA4
- Specifies that each pixel contains 2 4-bit channels:one each
for luminance and alpha.
FORMAT_LUM8_ALPHA8
public static final int FORMAT_LUM8_ALPHA8
- Specifies that each pixel contains 2 8-bit channels:one each
for luminance and alpha
FORMAT_R3_G3_B2
public static final int FORMAT_R3_G3_B2
- Specifies that each pixel contains 2 3-bit channels:one each
for red, green, and 1 2-bit channel for blue.
FORMAT_CHANNEL8
public static final int FORMAT_CHANNEL8
- Specifies that each pixel contains 1 8-bit channel: it can be
used for only luminance or only alpha or only intensity
PixelArray
public PixelArray()
- Constructs a PixelArray object.
setPixelData
public void setPixelData(byte pixelData[])
- Copies the specified pixel data to this object.
- Parameters:
- pixelData - array of bytes containing the pixel data
getPixelData
public void getPixelData(byte pixelData[])
- Gets a copy of the pixel data in this object.
- Parameters:
- pixelData - array of bytes that will receive a copy of
the pixel data
setDuplicateOnCloneTree
public final void setDuplicateOnCloneTree(boolean duplicate)
- Sets this node's duplicateOnCloneTree value. The
duplicateOnCloneTree value is used to determine if NodeComponent
objects are to be duplicated or referenced during a
cloneTree
operation. A value of true
means
that this NodeComponent object should be duplicated, while a value
of false
indicates that this NodeComponent object's
reference will be copied into the newly cloned object. This value
can be overriden via the forceDuplicate
parameter of
the cloneTree
method.
- Parameters:
- duplicate - the value to set.
- See Also:
- cloneTree
getDuplicateOnCloneTree
public final boolean getDuplicateOnCloneTree()
- Returns this node's duplicateOnCloneTree value. The
duplicateOnCloneTree value is used to determine if NodeComponent
objects are to be duplicated or referenced during a
cloneTree
operation. A value of true
means
that this NodeComponent object should be duplicated, while a value
of false
indicates that this NodeComponent object's
reference will be copied into the newly cloned object. This value
can be overriden via the forceDuplicate
parameter of
the cloneTree
method.
- Returns:
- the value of this node's duplicateOnCloneTree
- See Also:
- cloneTree
All Packages Class Hierarchy This Package Previous Next Index