## TextureCodec.Encode method

Encode texture data into stream using specified format

```csharp
public static void Encode(TextureData texture, Stream stream, string format)
```

| Parameter | Type | Description |
| --- | --- | --- |
| texture | TextureData | The texture to be encoded |
| stream | Stream | The output stream |
| format | String | The image format of encoded data, like png/jpg |

### Exceptions

| exception | condition |
| --- | --- |
| NotSupportedException |  |

### See Also

* class [TextureData](../../texturedata/)
* class [TextureCodec](../)
* namespace [Aspose.ThreeD.Render](../../texturecodec/)
* assembly [Aspose.3D](../../../)


