TextureCodec

Inheritance: java.lang.Object

public class TextureCodec

Class to manage encoders and decoders for textures.

Constructors

ConstructorDescription
TextureCodec()

Methods

MethodDescription
decode(Stream stream, boolean reverseY)Decode texture data from stream
encode(TextureData texture, Stream stream, String format)Encode texture data into stream using specified format
equals(Object arg0)
getClass()
getSupportedEncoderFormats()Gets all supported encoder formats
hashCode()
notify()
notifyAll()
registerCodec(ITextureCodec codec)Register a set of texture encoders and decoders
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

TextureCodec()

public TextureCodec()

decode(Stream stream, boolean reverseY)

public static TextureData decode(Stream stream, boolean reverseY)

Decode texture data from stream

Parameters:

ParameterTypeDescription
streamcom.aspose.csporter.helpers.Stream
reverseYboolean

Returns: TextureData

encode(TextureData texture, Stream stream, String format)

public static void encode(TextureData texture, Stream stream, String format)

Encode texture data into stream using specified format

Parameters:

ParameterTypeDescription
textureTextureDataThe texture to be encoded
streamcom.aspose.csporter.helpers.StreamThe output stream
formatjava.lang.StringThe image format of encoded data, like png/jpg

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getSupportedEncoderFormats()

public static String[] getSupportedEncoderFormats()

Gets all supported encoder formats

Returns: java.lang.String[]

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

registerCodec(ITextureCodec codec)

public static void registerCodec(ITextureCodec codec)

Register a set of texture encoders and decoders

Parameters:

ParameterTypeDescription
codecITextureCodec

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int