encode method
encode
Encode texture data into stream using specified format
def encode(self, texture, stream, format):
...
| Parameter | Type | Description |
|---|---|---|
| texture | TextureData | The texture to be encoded |
| stream | io.RawIOBase | The output stream |
| format | str | The image format of encoded data, like png/jpg |
Exceptions
| Exception | Description |
|---|---|
| NotSupportedException |
See Also
- module
aspose.threed.render - class
TextureCodec