Class NetPbmTextureWriter
java.lang.Object
com.jogamp.opengl.util.texture.spi.NetPbmTextureWriter
- All Implemented Interfaces:
TextureWriter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PPM
- See Also:
-
PAM
- See Also:
-
-
Constructor Details
-
NetPbmTextureWriter
public NetPbmTextureWriter() -
NetPbmTextureWriter
public NetPbmTextureWriter(int magic) supported magic values are:
magic 0 - detect by file suffix (TextureIO compliant) magic 6 - PPM binary RGB magic 7 - PAM binary RGB or RGBA
-
-
Method Details
-
getMagic
public int getMagic() -
getSuffix
-
write
Description copied from interface:TextureWriter
Writes the given TextureData to the passed file. Returns true if this TextureWriter successfully handled the writing of the file, otherwise false. May throw IOException if either this writer did not support certain parameters of the TextureData or if an I/O error occurred.- Specified by:
write
in interfaceTextureWriter
- Throws:
IOException
-