Class NetPbmTextureWriter
- java.lang.Object
-
- com.jogamp.opengl.util.texture.spi.NetPbmTextureWriter
-
- All Implemented Interfaces:
TextureWriter
public class NetPbmTextureWriter extends Object implements TextureWriter
-
-
Constructor Summary
Constructors Constructor Description NetPbmTextureWriter()
NetPbmTextureWriter(int magic)
supported magic values are:
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMagic()
String
getSuffix()
boolean
write(File file, TextureData data)
Writes the given TextureData to the passed file.
-
-
-
Field Detail
-
PPM
public static final String PPM
- See Also:
TextureIO.PPM
, Constant Field Values
-
PAM
public static final String PAM
- See Also:
TextureIO.PAM
, Constant Field Values
-
-
Method Detail
-
getMagic
public int getMagic()
-
getSuffix
public String getSuffix()
-
write
public boolean write(File file, TextureData data) throws IOException
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
-
-