org.gamenet.application.mm8leveleditor.converter
Class MultipleTGAToBMPFormatConverter.MultipleTGAToBMPConversionOutputStream.InternalLodResource
java.lang.Object
org.gamenet.application.mm8leveleditor.converter.MultipleTGAToBMPFormatConverter.MultipleTGAToBMPConversionOutputStream.InternalLodResource
- All Implemented Interfaces:
- LodResource, TGADataProducer
- Enclosing class:
- MultipleTGAToBMPFormatConverter.MultipleTGAToBMPConversionOutputStream
- public class MultipleTGAToBMPFormatConverter.MultipleTGAToBMPConversionOutputStream.InternalLodResource
- extends Object
- implements TGADataProducer, LodResource
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sourceLodResource
private LodResource sourceLodResource
sourceTGADataProducer
private TGADataProducer sourceTGADataProducer
width
private int width
height
private int height
data
private byte[] data
MultipleTGAToBMPFormatConverter.MultipleTGAToBMPConversionOutputStream.InternalLodResource
public MultipleTGAToBMPFormatConverter.MultipleTGAToBMPConversionOutputStream.InternalLodResource(LodResource sourceLodResource,
int width,
int height,
byte[] data)
getByteWidth
public int getByteWidth()
- Specified by:
getByteWidth
in interface TGADataProducer
- Returns:
- image width in bytes
getByteHeight
public int getByteHeight()
- Specified by:
getByteHeight
in interface TGADataProducer
- Returns:
- image height in bytes
getPalette
public int[] getPalette()
throws IOException
- Specified by:
getPalette
in interface TGADataProducer
- Returns:
- int array of palette data
- Throws:
IOException
getDataHeader
public byte[] getDataHeader()
- Specified by:
getDataHeader
in interface LodResource
getData
public byte[] getData()
throws IOException
- Specified by:
getData
in interface LodResource
- Throws:
IOException
getTextDescription
public String getTextDescription()
- Specified by:
getTextDescription
in interface LodResource
getResourceType
public String getResourceType()
- Specified by:
getResourceType
in interface LodResource
getName
public String getName()
- Specified by:
getName
in interface LodResource