TextureData
TextureData — clasa TextureData.
Methods: Aspose.ThreeD
Metode
| Name | Type | Access | Description |
|---|---|---|---|
Data | byte[] | Read | Raw bytes of pixel data |
Width | int | Read | Number of horizontal pixels |
Height | int | Read | Number of vertical pixels |
Stride | int | Read | Number of bytes of a scanline. |
BytesPerPixel | int | Read | Number of bytes of a pixel |
PixelFormat | PixelFormat | Read | The pixel’s format |
Name | string | Read/Write | Gets or sets the name. |
Properties | PropertyCollection | Read | Gets the collection of all properties. |
| Signature | Description |
|---|---|
TextureData() | Constructor of |
TextureData(width: int, height: int, pixelFormat: PixelFormat) | Constructs a new and allocate pixel data. |
TextureData(width: int, height: int, stride: int, bytesPerPixel: int, pixelFormat: PixelFormat, data: byte[]) | Creates a new instance of the TextureData class |
FromStream(stream: Stream) | Not implemented in the FOSS edition — throws at runtime. Load a texture from stream |
FromFile(fileName: string) | Not implemented in the FOSS edition — throws at runtime. Load a texture from file |
Save(stream: Stream, format: string) | Not implemented in the FOSS edition — throws at runtime. Save texture data into specified image format |
Save(fileName: string) | Not implemented in the FOSS edition — throws at runtime. Save texture data into image file |
Save(fileName: string, format: string) | Not implemented in the FOSS edition — throws at runtime. Save texture data into image file |
MapPixels(mapMode: PixelMapMode) | Not implemented in the FOSS edition — throws at runtime. Map all pixels for read/write |
MapPixels(mapMode: PixelMapMode, format: PixelFormat) | Not implemented in the FOSS edition — throws at runtime. Map all pixels for read/write in given pixel format |
MapPixels(rect: Aspose.ThreeD.Utilities.Rect, mapMode: PixelMapMode, format: PixelFormat) | Not implemented in the FOSS edition — throws at runtime. Map pixels addressed by rect for reading/writing in given pixel format |
TransformPixelFormat(pixelFormat: PixelFormat) | Not implemented in the FOSS edition — throws at runtime. Transform pixel’s layout to new pixel format. |
A3DObject() | Initializes a new instance of the A3DObject class with no name. |
RemoveProperty(property: Property) | Removes a dynamic property. |
GetProperty(property: string) | Get the value of specified property |
SetProperty(property: string, value: object?) | Sets the value of specified property |
FindProperty(propertyName: string) | Finds the property. |
Metode
Nicio metodă publică documentată în sursă.