TextureData class
TextureData class
This class contains the raw data and format definition of a texture.
The TextureData type exposes the following members:
Constructors
Properties
Methods
| Method | Description |
|---|
| save | Save texture data into specified image format |
| save | Save texture data into image file |
| save | Save texture data into image file |
| map_pixels | Map all pixels for read/write |
| map_pixels | Map all pixels for read/write in given pixel format |
| map_pixels | Map pixels addressed by rect for reading/writing in given pixel format |
| from_stream | Load a texture from stream |
| from_file | Load a texture from file |
| transform_pixel_format | Transform pixel’s layout to new pixel format. |
See Also