
## decode(self, stream, reverse_y) {#io.RawIOBase-bool}

Decode texture from stream, return null if failed to decode.


### Returns 


Decoded texture data or null if not supported.


```python

def decode(self, stream, reverse_y):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| stream | io.RawIOBase | Texture data source stream |
| reverse_y | bool | Flip the texture |
### Exceptions
| Exception | Description |
| :- | :- |
| IOException | Thrown when failed to read data from stream |





### See Also
* module [`aspose.threed.render`](../../)
* class [`ITextureDecoder`](/3d/python-net/aspose.threed.render/itexturedecoder)
