|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjarp.ImageHandler
public class ImageHandler
A handler for a Java ARP texture image.
Constructor Summary | |
---|---|
ImageHandler(JAOptions jopts)
Basic constructor, establishes JA options and primary avatar definition input path, as specified. |
Method Summary | |
---|---|
int |
getGLTextureID()
|
void |
loadTextureFromStreamV21(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
JAInputStream jins)
Loads texture from stream, supporting v2.1 avatar format. |
void |
loadTextureFromStreamV22(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
JAInputStream jins,
boolean COMPRESSED,
boolean PNG,
boolean IS_V_FLIPPED)
Loads texture from stream, supporting v2.2 avatar format. |
void |
loadTextureFromURL(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
java.lang.String IMG_URL_STR)
Loads the texture from the given URL (in v2.2 avatar format), with the other settings taken from the current JA options. |
void |
loadTextureFromURL(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
java.lang.String IMG_URL_STR,
boolean IS_V22)
Loads the texture from the given URL, with v2.2 or v2.1 avatar format as determined by the given flag parameter, and with the other settings taken from the current JA options. |
void |
loadTextureFromURL(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
java.net.URL IMG_URL,
boolean COMPRESSED,
boolean PNG,
boolean IS_V_FLIPPED)
Loads the texture from the specified URL, in accordance with the specified flags, in v2.2 format. |
void |
loadTextureFromURL(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
java.net.URL IMG_URL,
boolean COMPRESSED,
boolean PNG,
boolean IS_V_FLIPPED,
boolean IS_V22)
Loads the texture from the specified URL, in accordance with the specified flags. |
void |
saveJAImageAsPNG(JAOutputStream jouts,
boolean vflippedpng)
Saves this handler's image in PNG format on the specified stream prefixed with its size in bytes, vertically flipped or not as specified. |
void |
saveJAImageAsPNG(java.lang.String pngpath,
boolean vflippedpng)
Saves this handler's image in PNG format on the specified file, vertically flipped or not as specified. |
void |
saveJAImageToFile()
Saves this handler's image to a file in JIB (JA image bytes) format (v2.2 avatar definition format), using the JA options to determine the file name and compression flag setting. |
void |
saveJAImageToFile(java.lang.String outpath,
boolean COMPRESS)
Saves this handler's image to the specified file in JIB (JA image bytes) format (v2.2 or avatar definition format), with the specified compression settting. |
void |
saveJAImageToStream(JAOutputStream jouts,
boolean compress)
Saves this handler's image as a JA image on the given stream (format is v2.2). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageHandler(JAOptions jopts)
Method Detail |
---|
public int getGLTextureID()
public void loadTextureFromURL(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, java.lang.String IMG_URL_STR) throws java.io.IOException, JAException
java.io.IOException
JAException
public void loadTextureFromURL(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, java.lang.String IMG_URL_STR, boolean IS_V22) throws java.io.IOException, JAException
java.io.IOException
JAException
public void loadTextureFromURL(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, java.net.URL IMG_URL, boolean COMPRESSED, boolean PNG, boolean IS_V_FLIPPED) throws java.io.IOException, JAException
java.io.IOException
JAException
public void loadTextureFromURL(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, java.net.URL IMG_URL, boolean COMPRESSED, boolean PNG, boolean IS_V_FLIPPED, boolean IS_V22) throws java.io.IOException, JAException
java.io.IOException
JAException
public void loadTextureFromStreamV21(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, JAInputStream jins) throws java.io.IOException, JAException
java.io.IOException
JAException
public void loadTextureFromStreamV22(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, JAInputStream jins, boolean COMPRESSED, boolean PNG, boolean IS_V_FLIPPED) throws java.io.IOException, JAException
java.io.IOException
JAException
public void saveJAImageToFile() throws java.io.IOException
java.io.IOException
public void saveJAImageToFile(java.lang.String outpath, boolean COMPRESS) throws java.io.IOException
java.io.IOException
public void saveJAImageToStream(JAOutputStream jouts, boolean compress) throws java.io.IOException
java.io.IOException
public void saveJAImageAsPNG(java.lang.String pngpath, boolean vflippedpng) throws java.io.IOException
java.io.IOException
public void saveJAImageAsPNG(JAOutputStream jouts, boolean vflippedpng) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |