## ITextureEncoder.Encode method

Encode texture data into stream

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

| Parameter | Type | Description |
| --- | --- | --- |
| texture | TextureData | The texture data to be encoded |
| stream | Stream | The output stream |

### Exceptions

| exception | condition |
| --- | --- |
| IOException | Thrown when failed to write encoded texture to stream |

### See Also

* class [TextureData](../../texturedata/)
* interface [ITextureEncoder](../)
* namespace [Aspose.ThreeD.Render](../../itextureencoder/)
* assembly [Aspose.3D](../../../)


