encode method
encode(, texture, stream, format)
Encode texture data into stream using specified format
@staticmethod
def encode(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