TextureCodec.Encode

TextureCodec.Encode method

Encode texture data into stream using specified format

public static void Encode(TextureData texture, Stream stream, string format)
ParameterTypeDescription
textureTextureDataThe texture to be encoded
streamStreamThe output stream
formatStringThe image format of encoded data, like png/jpg

Exceptions

exceptioncondition
NotSupportedException

See Also