encode method

encode

Encode texture data into stream using specified format

def encode(self, texture, stream, format):
    ...
ParameterTypeDescription
textureTextureDataThe texture to be encoded
streamio.RawIOBaseThe output stream
formatstrThe image format of encoded data, like png/jpg

Exceptions

ExceptionDescription
NotSupportedException

See Also