
## TextureData class

This class contains the raw data and format definition of a texture.



**Inheritance:** [`TextureData`](/3d/python-net/aspose.threed.render/texturedata) → 
[`A3DObject`](/3d/python-net/aspose.threed/a3dobject)



The TextureData type exposes the following members:

### Constructors
| Constructor | Description |
| :- | :- |
| [`__init__(self, width, height, stride, bytes_per_pixel, pixel_format, data)`](/3d/python-net/aspose.threed.render/texturedata/__init__/#int-int-int-int-aspose.threed.render.pixelformat-bytes) | Constructor of [`TextureData`](/3d/python-net/aspose.threed.render/texturedata) |
| [`__init__(self, width, height, pixel_format)`](/3d/python-net/aspose.threed.render/texturedata/__init__/#int-int-aspose.threed.render.pixelformat) | Constructs a new [`TextureData`](/3d/python-net/aspose.threed.render/texturedata) and allocate pixel data. |
| [`__init__(self)`](/3d/python-net/aspose.threed.render/texturedata/__init__/#) | Constructor of [`TextureData`](/3d/python-net/aspose.threed.render/texturedata) |


### Properties
| Property | Description |
| :- | :- |
| [name](/3d/python-net/aspose.threed.render/texturedata/name) | Gets or sets the name. |
| [properties](/3d/python-net/aspose.threed.render/texturedata/properties) | Gets the collection of all properties. |
| [data](/3d/python-net/aspose.threed.render/texturedata/data) | Raw bytes of pixel data |
| [width](/3d/python-net/aspose.threed.render/texturedata/width) | Number of horizontal pixels |
| [height](/3d/python-net/aspose.threed.render/texturedata/height) | Number of vertical pixels |
| [stride](/3d/python-net/aspose.threed.render/texturedata/stride) | Number of bytes of a scanline. |
| [bytes_per_pixel](/3d/python-net/aspose.threed.render/texturedata/bytes_per_pixel) | Number of bytes of a pixel |
| [pixel_format](/3d/python-net/aspose.threed.render/texturedata/pixel_format) | The pixel's format |


### Methods
| Method | Description |
| :- | :- |
| [`remove_property(self, property)`](/3d/python-net/aspose.threed.render/texturedata/remove_property/#aspose.threed.property) | Removes a dynamic property. |
| [`remove_property(self, property)`](/3d/python-net/aspose.threed.render/texturedata/remove_property/#system.string) | Remove the specified property identified by name |
| [`save(self, stream, format)`](/3d/python-net/aspose.threed.render/texturedata/save/#io.rawiobase-system.string) | Save texture data into specified image format |
| [`save(self, file_name)`](/3d/python-net/aspose.threed.render/texturedata/save/#system.string) | Save texture data into image file |
| [`save(self, file_name, format)`](/3d/python-net/aspose.threed.render/texturedata/save/#system.string-system.string) | Save texture data into image file |
| [`map_pixels(self, map_mode)`](/3d/python-net/aspose.threed.render/texturedata/map_pixels/#aspose.threed.render.pixelmapmode) | Map all pixels for read/write |
| [`map_pixels(self, map_mode, format)`](/3d/python-net/aspose.threed.render/texturedata/map_pixels/#aspose.threed.render.pixelmapmode-aspose.threed.render.pixelformat) | Map all pixels for read/write in given pixel format |
| [`map_pixels(self, rect, map_mode, format)`](/3d/python-net/aspose.threed.render/texturedata/map_pixels/#aspose.threed.utilities.rect-aspose.threed.render.pixelmapmode-aspose.threed.render.pixelformat) | Map pixels addressed by rect for reading/writing in given pixel format |
| [`get_property(self, property)`](/3d/python-net/aspose.threed.render/texturedata/get_property/#system.string) | Get the value of specified property |
| [`set_property(self, property, value)`](/3d/python-net/aspose.threed.render/texturedata/set_property/#system.string-system.object) | Sets the value of specified property |
| [`find_property(self, property_name)`](/3d/python-net/aspose.threed.render/texturedata/find_property/#system.string) | Finds the property.<br/>It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) <br/>or native property(Identified by its name) |
| [`from_stream(, stream)`](/3d/python-net/aspose.threed.render/texturedata/from_stream/#io.rawiobase) | Load a texture from stream |
| [`from_file(, file_name)`](/3d/python-net/aspose.threed.render/texturedata/from_file/#system.string) | Load a texture from file |
| [`transform_pixel_format(self, pixel_format)`](/3d/python-net/aspose.threed.render/texturedata/transform_pixel_format/#aspose.threed.render.pixelformat) | Transform pixel's layout to new pixel format. |



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