TextureData

Общ преглед

TextureData е клас в Aspose.3D FOSS за .NET.

Данни за текстурата

Свойства на веществата

NameTypeAccessDescription
Databyte[]ReadRaw bytes of pixel data
WidthintReadNumber of horizontal pixels
HeightintReadNumber of vertical pixels
StrideintReadNumber of bytes of a scanline.
BytesPerPixelintReadNumber of bytes of a pixel
PixelFormatPixelFormatReadThe pixel’s format
NamestringRead/WriteGets or sets the name.
PropertiesPropertyCollectionReadGets the collection of all properties.

Методи за изчисляване на данните

SignatureDescription
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.
 Български