Class PathStructure
PathStructure class
パス構造。
public sealed class PathStructure : OSTypeStructure
コンストラクター
| 名前 | 説明 |
|---|---|
| PathStructure(ClassID) | の新しいインスタンスを初期化しますPathStructureclass. |
プロパティ
| 名前 | 説明 |
|---|---|
| override Key { get; } | 構造キーを取得します。 |
| KeyName { get; set; } | キー名を取得または設定します。 |
| override Length { get; } | を取得しますOSTypeStructureバイト単位の長さ. |
| Path { get; set; } | パスを取得または設定します。 |
| Prefix { get; set; } | パスのプレフィックスを取得または設定します。 |
メソッド
| 名前 | 説明 |
|---|---|
| virtual GetHeaderLength() | ヘッダー長を取得します。 |
| Save(StreamContainer) | 指定したストリーム コンテナーに構造体を保存します。 |
| SaveWithoutKeyName(StreamContainer) | 指定したストリーム コンテナーに構造体を保存します。 |
田畑
| 名前 | 説明 |
|---|---|
| const StructureKey | 構造キーを識別します。 |
例
次のコードは、PathStructure 構造を持つファイルをロードする機能を示しています。
[C#]
string srcFile = "shirt-color.psd";
string output = "output.psd";
using (PsdImage image = (PsdImage)Image.Load(srcFile))
{
image.Save(output);
}