M3GToolkit 0.5.0

com.java4ever.m3g
Class Image2D

java.lang.Object
  extended bycom.java4ever.m3g.M3GObject
      extended bycom.java4ever.m3g.Object3D
          extended bycom.java4ever.m3g.Image2D

public class Image2D
extends Object3D


Field Summary
static byte ALPHA
           
static byte LUMINANCE
           
static byte LUMINANCE_ALPHA
           
static byte RGB
           
static byte RGBA
           
 
Fields inherited from class com.java4ever.m3g.M3GObject
ANIMATION_CONTROLLER, ANIMATION_TRACK, APPEARANCE, BACKGROUND, CAMERA, COMPOSITING_MODE, EXTERNAL_REFERENCE, FOG, GROUP, HEADER, IMAGE2D, KEYFRAME_SEQUENCE, LIGHT, MATERIAL, MESH, MORPHING_MESH, POLYGON_MODE, SKINNED_MESH, SPRITE3D, TEXTURE2D, TRIANGLE_STRIP_ARRAY, VERTEX_ARRAY, VERTEX_BUFFER, WORLD
 
Constructor Summary
Image2D(int format, java.awt.image.BufferedImage image)
           
Image2D(int format, int width, int height)
           
Image2D(int format, int width, int height, byte[] image)
           
Image2D(int format, int width, int height, byte[] image, byte[] palette)
           
 
Method Summary
 int getFormat()
           
 int getHeight()
           
 java.awt.image.BufferedImage getImage()
           
 int getObjectType()
           
 int getWidth()
           
 boolean isMutable()
           
protected  void read(M3GInputStream is, java.util.ArrayList table)
           
 void set(int x, int y, int width, int height, byte[] image)
           
 void setFormat(int format)
           
 void setImage(java.awt.image.BufferedImage image)
           
protected  void write(M3GOutputStream os, java.util.ArrayList table)
           
 
Methods inherited from class com.java4ever.m3g.Object3D
addAnimationTrack, animate, buildReferenceTable, duplicate, find, getAnimationTrack, getAnimationTrackCount, getReferences, getUserID, getUserObject, removeAnimationTrack, setUserID, setUserObject
 
Methods inherited from class com.java4ever.m3g.M3GObject
getObjectAtIndex, isRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALPHA

public static final byte ALPHA
See Also:
Constant Field Values

LUMINANCE

public static final byte LUMINANCE
See Also:
Constant Field Values

LUMINANCE_ALPHA

public static final byte LUMINANCE_ALPHA
See Also:
Constant Field Values

RGB

public static final byte RGB
See Also:
Constant Field Values

RGBA

public static final byte RGBA
See Also:
Constant Field Values
Constructor Detail

Image2D

public Image2D(int format,
               java.awt.image.BufferedImage image)

Image2D

public Image2D(int format,
               int width,
               int height,
               byte[] image)

Image2D

public Image2D(int format,
               int width,
               int height,
               byte[] image,
               byte[] palette)

Image2D

public Image2D(int format,
               int width,
               int height)
Method Detail

set

public void set(int x,
                int y,
                int width,
                int height,
                byte[] image)

isMutable

public boolean isMutable()

setFormat

public void setFormat(int format)

getFormat

public int getFormat()

getWidth

public int getWidth()

getHeight

public int getHeight()

setImage

public void setImage(java.awt.image.BufferedImage image)

getImage

public java.awt.image.BufferedImage getImage()

getObjectType

public int getObjectType()
Specified by:
getObjectType in class M3GObject

read

protected void read(M3GInputStream is,
                    java.util.ArrayList table)
             throws java.io.IOException
Overrides:
read in class Object3D
Throws:
java.io.IOException

write

protected void write(M3GOutputStream os,
                     java.util.ArrayList table)
              throws java.io.IOException
Overrides:
write in class Object3D
Throws:
java.io.IOException

M3GToolkit 0.5.0

Copyright 2005 java4ever.com. All Rights Reserved.