Class dnx.lr.field.SFImage
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.lr.field.SFImage
java.lang.Object
|
+----dnx.util.DNXObject
|
+----dnx.lr.Field
|
+----dnx.lr.field.SFImage
- public class SFImage
- extends Field
-
SFImage()
-
-
SFImage(int, int, int)
-
-
SFImage(int, int, int, byte[])
-
-
SFImage(SFImage)
-
-
alloc()
-
-
alloc(int, int, int)
-
-
clear()
-
-
copy(Field)
-
-
copy(SFImage)
-
-
equals(Object)
-
-
equals(SFImage)
-
-
free()
-
-
getComponents()
-
-
getHeight()
-
-
getPixels(byte[])
-
-
getPixels(int[])
- Return the pixels in standard SFImage format --
i.e.
-
getPixelsInternal()
- Return the pixels in "internal" format -- i.e.
-
getWidth()
-
-
print(PrintAction)
-
-
readInternal(ReadAction)
- Implementation of read().
-
setPixels(byte[])
-
-
setPixels(int[])
- Set the pixels, where the value are specified in standard
SFImage format -- i.e.
-
setPixelsInternal(int[])
- Set the pixels, where the value are specified in "internal"
format -- i.e.
-
setValue(int, int, int, byte[])
-
-
toString()
-
SFImage
public SFImage(int width,
int height,
int components)
SFImage
public SFImage(int width,
int height,
int components,
byte pixels[])
SFImage
public SFImage()
SFImage
public SFImage(SFImage f)
alloc
public static SFImage alloc(int width,
int height,
int components)
alloc
public static SFImage alloc()
free
public void free()
- Overrides:
- free in class Field
clear
public void clear()
readInternal
protected void readInternal(ReadAction a) throws IOException, VRMLSyntaxException
- Implementation of read().
- Overrides:
- readInternal in class Field
getPixelsInternal
public int[] getPixelsInternal()
- Return the pixels in "internal" format -- i.e. a format
compatible with MemoryImageSource, i.e. top-to-bottom,
left-to-right, with the integers representing alpha-red-green-blue,
with alpha == 0 for transparent and alpha == 255 for opaque. This is
significantly different from the way that the numbers are represented
externally in the SFImage format, but is faster.
getPixels
public void getPixels(int pix[])
- Return the pixels in standard SFImage format --
i.e. bottom-to-top, left-to-right, with the integers representing
one of gray, gray-alpha, red-green-blue, or red-green-blue-alpha
(depending on the number of components), where alpha == 0 for
transparent and alpha == 255 for opaque.
getPixels
public void getPixels(byte pix[])
getWidth
public int getWidth()
getHeight
public int getHeight()
getComponents
public int getComponents()
setValue
public void setValue(int width,
int height,
int components,
byte pixels[])
setPixelsInternal
public void setPixelsInternal(int pix[])
- Set the pixels, where the value are specified in "internal"
format -- i.e. a format compatible with MemoryImageSource, i.e.
top-to-bottom, left-to-right, with the integers representing
alpha-red-green-blue, with alpha == 0 for transparent and alpha
== 255 for opaque. This is significantly different from the way
that the numbers are represented externally in the SFImage
format, but is faster.
setPixels
public void setPixels(int pix[])
- Set the pixels, where the value are specified in standard
SFImage format -- i.e. bottom-to-top, left-to-right, with the
integers representing one of gray, gray-alpha, red-green-blue, or
red-green-blue-alpha (depending on the number of components),
where alpha == 0 for transparent and alpha == 255 for opaque.
setPixels
public void setPixels(byte pix[])
print
public void print(PrintAction a)
- Overrides:
- print in class Field
copy
public synchronized void copy(SFImage f)
copy
public synchronized void copy(Field f)
- Overrides:
- copy in class Field
equals
public boolean equals(SFImage f)
equals
public boolean equals(Object o)
- Overrides:
- equals in class Object
toString
public String toString()
- Overrides:
- toString in class Field
All Packages Class Hierarchy This Package Previous Next Index