TextureData

概要

TextureData クラスです. これは,PLACEHOLDER_0の FOSSで使用されているクラスを表します.

質感データ

このクラスでは,NET プログラムで TextureData オブジェクトと作業する1つのメソッドが提供されています. 可能な方法には: TextureData. すべての輸出されたメンバーは,Aspose.3D FOSS for .NET パッケージをインストールした後で任意の.NET アプリケーションにアクセスできます. 特性: Size.

記述

TextureData プログラム化用途のために 0 つのメソッドと 1 つのプロパティを公開する.

インスタンスは,デフォルト値でオブジェクトを初期化する単一のコンストラクターによって作成されます.

特性について

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.

参照する

 日本語