
## \_\_init\_\_(self) {#}

Constructor of [`TextureData`](/3d/python-net/aspose.threed.render/texturedata)



```python

def __init__(self):
    ...
```




## \_\_init\_\_(self, width, height, pixel_format) {#int-int-aspose.threed.render.PixelFormat}

Constructs a new [`TextureData`](/3d/python-net/aspose.threed.render/texturedata) and allocate pixel data.



```python

def __init__(self, width, height, pixel_format):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| width | int |  |
| height | int |  |
| pixel_format | aspose.threed.render.PixelFormat |  |


## \_\_init\_\_(self, width, height, stride, bytes_per_pixel, pixel_format, data) {#int-int-int-int-aspose.threed.render.PixelFormat-bytes}

Constructor of [`TextureData`](/3d/python-net/aspose.threed.render/texturedata)



```python

def __init__(self, width, height, stride, bytes_per_pixel, pixel_format, data):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| width | int |  |
| height | int |  |
| stride | int |  |
| bytes_per_pixel | int |  |
| pixel_format | aspose.threed.render.PixelFormat |  |
| data | bytes |  |



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