TextureCodec.Encode

TextureCodec.Encode method

使用指定格式将纹理数据编码到流中

public static void Encode(TextureData texture, Stream stream, string format)
参数类型描述
纹理TextureData要编码的纹理
streamStream输出流
格式字符串已编码数据的图像格式,例如 png/jpg

异常

异常条件
NotSupportedException

另请参见