TextureData
Inheritance: java.lang.Object, com.aspose.threed.A3DObject
public class TextureData extends A3DObject
このクラスはテクスチャの生データとフォーマット定義を含みます。
コンストラクタ
| コンストラクタ | 説明 |
|---|---|
| TextureData(int width, int height, int stride, int bytesPerPixel, PixelFormat pixelFormat, byte[] data) | TextureData のコンストラクタ |
| TextureData(int width, int height, PixelFormat pixelFormat) | 新しい TextureData を作成し、ピクセルデータを割り当てます。 |
| TextureData() | TextureData のコンストラクタ |
メソッド
TextureData(int width, int height, int stride, int bytesPerPixel, PixelFormat pixelFormat, byte[] data)
public TextureData(int width, int height, int stride, int bytesPerPixel, PixelFormat pixelFormat, byte[] data)
TextureData のコンストラクタ
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 幅 | int | |
| 高さ | int | |
| ストライド | int | |
| bytesPerPixel | int | |
| pixelFormat | PixelFormat | |
| データ | byte[] |
TextureData(int width, int height, PixelFormat pixelFormat)
public TextureData(int width, int height, PixelFormat pixelFormat)
新しい TextureData を作成し、ピクセルデータを割り当てます。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 幅 | int | |
| 高さ | int | |
| pixelFormat | PixelFormat |
TextureData()
public TextureData()
TextureData のコンストラクタ
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
findProperty(String propertyName)
public Property findProperty(String propertyName)
プロパティを検索します。動的プロパティ(CreateDynamicProperty/SetProperty により作成)またはネイティブプロパティ(名前で識別)になる可能性があります。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| propertyName | java.lang.String | プロパティ名。 |
Returns: Property - The property.
fromFile(String fileName)
public static TextureData fromFile(String fileName)
ファイルからテクスチャを読み込みます
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| fileName | java.lang.String |
Returns: TextureData
fromStream(Stream stream)
public static TextureData fromStream(Stream stream)
ストリームからテクスチャを読み込みます
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| stream | Stream |
Returns: TextureData
getBytesPerPixel()
public int getBytesPerPixel()
ピクセルあたりのバイト数
Returns: int - ピクセルあたりのバイト数
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getData()
public byte[] getData()
ピクセルデータの生バイト列
Returns: byte[] - ピクセルデータの生バイト列
getHeight()
public int getHeight()
垂直方向のピクセル数
Returns: int - 垂直ピクセル数
getName()
public String getName()
名前を取得します。
Returns: java.lang.String - 名前です。
getPixelFormat()
public PixelFormat getPixelFormat()
ピクセルのフォーマット
Returns: PixelFormat - The pixel’s format
getProperties()
public PropertyCollection getProperties()
すべてのプロパティのコレクションを取得します。
Returns: PropertyCollection - the collection of all properties.
getProperty(String property)
public Object getProperty(String property)
指定されたプロパティの値を取得します
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| プロパティ | java.lang.String | プロパティ名 |
Returns: java.lang.Object - 見つかったプロパティの値
getStride()
public int getStride()
走査線のバイト数。
Returns: int - 走査線のバイト数。
getWidth()
public int getWidth()
水平ピクセル数
Returns: int - 水平ピクセル数
hashCode()
public native int hashCode()
Returns: int
mapPixels(PixelMapMode mapMode)
public PixelMapping mapPixels(PixelMapMode mapMode)
読み書き用にすべてのピクセルをマップする
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| mapMode | PixelMapMode | マップモード |
Returns: PixelMapping
mapPixels(PixelMapMode mapMode, PixelFormat format)
public PixelMapping mapPixels(PixelMapMode mapMode, PixelFormat format)
指定されたピクセル形式で読み書き用にすべてのピクセルをマップする
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| mapMode | PixelMapMode | マップモード |
| format | PixelFormat | ピクセル形式 |
Returns: PixelMapping
mapPixels(Rect rect, PixelMapMode mapMode, PixelFormat format)
public PixelMapping mapPixels(Rect rect, PixelMapMode mapMode, PixelFormat format)
矩形で指定されたピクセルを、指定されたピクセル形式で読み書き用にマップする
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| rect | Rect | アクセス対象となるピクセル領域 |
| mapMode | PixelMapMode | マップモード |
| format | PixelFormat | ピクセル形式 |
Returns: PixelMapping - Returns a mapping object, it should be disposed when no longer needed.
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
removeProperty(Property property)
public boolean removeProperty(Property property)
動的プロパティを削除します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| property | Property | 削除するプロパティ |
Returns: boolean - プロパティが正常に削除された場合は true
removeProperty(String property)
public boolean removeProperty(String property)
名前で識別される指定されたプロパティを削除します
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| プロパティ | java.lang.String | 削除するプロパティ |
Returns: boolean - プロパティが正常に削除された場合は true
save(Stream stream, String format)
public void save(Stream stream, String format)
テクスチャデータを指定された画像形式で保存する
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| stream | Stream | 保存された画像を保持するストリーム |
| format | java.lang.String | 画像形式(通常はファイル拡張子) |
save(String fileName)
public void save(String fileName)
テクスチャデータを画像ファイルに保存する
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| fileName | java.lang.String | 画像が保存されるファイル名。 |
save(String fileName, String format)
public void save(String fileName, String format)
テクスチャデータを画像ファイルに保存する
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| fileName | java.lang.String | 画像が保存されるファイル名。 |
| format | java.lang.String | 出力ファイルの画像形式。 |
setName(String value)
public void setName(String value)
名前を設定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | java.lang.String | 新しい値 |
setProperty(String property, Object value)
public void setProperty(String property, Object value)
指定されたプロパティの値を設定します
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| プロパティ | java.lang.String | プロパティ名 |
| 値 | java.lang.Object | プロパティの値 |
toString()
public String toString()
Returns: java.lang.String
transformPixelFormat(PixelFormat pixelFormat)
public void transformPixelFormat(PixelFormat pixelFormat)
ピクセルのレイアウトを新しいピクセル形式に変換する。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| pixelFormat | PixelFormat | 宛先ピクセル形式 |
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | long | |
| arg1 | int |