encode method

encode(, texture, stream, format)

Encode texture data into stream using specified format


@staticmethod
def encode(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