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

Constructor Index

 o SFImage()
 o SFImage(int, int, int)
 o SFImage(int, int, int, byte[])
 o SFImage(SFImage)

Method Index

 o alloc()
 o alloc(int, int, int)
 o clear()
 o copy(Field)
 o copy(SFImage)
 o equals(Object)
 o equals(SFImage)
 o free()
 o getComponents()
 o getHeight()
 o getPixels(byte[])
 o getPixels(int[])
Return the pixels in standard SFImage format -- i.e.
 o getPixelsInternal()
Return the pixels in "internal" format -- i.e.
 o getWidth()
 o print(PrintAction)
 o readInternal(ReadAction)
Implementation of read().
 o setPixels(byte[])
 o setPixels(int[])
Set the pixels, where the value are specified in standard SFImage format -- i.e.
 o setPixelsInternal(int[])
Set the pixels, where the value are specified in "internal" format -- i.e.
 o setValue(int, int, int, byte[])
 o toString()

Constructors

 o SFImage
  public SFImage(int width,
                 int height,
                 int components)
 o SFImage
  public SFImage(int width,
                 int height,
                 int components,
                 byte pixels[])
 o SFImage
  public SFImage()
 o SFImage
  public SFImage(SFImage f)

Methods

 o alloc
  public static SFImage alloc(int width,
                              int height,
                              int components)
 o alloc
  public static SFImage alloc()
 o free
  public void free()
Overrides:
free in class Field
 o clear
  public void clear()
 o readInternal
  protected void readInternal(ReadAction a) throws IOException, VRMLSyntaxException
Implementation of read().
Overrides:
readInternal in class Field
 o 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.
 o 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.
 o getPixels
  public void getPixels(byte pix[])
 o getWidth
  public int getWidth()
 o getHeight
  public int getHeight()
 o getComponents
  public int getComponents()
 o setValue
  public void setValue(int width,
                       int height,
                       int components,
                       byte pixels[])
 o 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.
 o 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.
 o setPixels
  public void setPixels(byte pix[])
 o print
  public void print(PrintAction a)
Overrides:
print in class Field
 o copy
  public synchronized void copy(SFImage f)
 o copy
  public synchronized void copy(Field f)
Overrides:
copy in class Field
 o equals
  public boolean equals(SFImage f)
 o equals
  public boolean equals(Object o)
Overrides:
equals in class Object
 o toString
  public String toString()
Overrides:
toString in class Field

All Packages  Class Hierarchy  This Package  Previous  Next  Index