decode method

decode(self, stream, reverse_y)

Decode texture from stream, return null if failed to decode.

Returns

Decoded texture data or null if not supported.


def decode(self, stream, reverse_y):
    ...
ParameterTypeDescription
streamio.RawIOBaseTexture data source stream
reverse_yboolFlip the texture

Exceptions

ExceptionDescription
IOExceptionThrown when failed to read data from stream

See Also