BitmapMetadata.Location プロパティ

定義

イメージに関連付けられているメタデータの基本場所を識別する値を取得します。

public:
 property System::String ^ Location { System::String ^ get(); };
public string Location { [System.Security.SecurityCritical] get; }
public string Location { get; }
[<get: System.Security.SecurityCritical>]
member this.Location : string
member this.Location : string
Public ReadOnly Property Location As String

プロパティ値

String

イメージのメタデータの基本場所。

属性

次のコード例は、オブジェクトのさまざまなプロパティを読み取り、その値を BitmapMetadata 文字列として送信する方法を MessageBox 示しています。

FileStream stream4 = new FileStream("image3.tif", FileMode.Create);
BitmapMetadata myBitmapMetadata2 = new BitmapMetadata("tiff");
TiffBitmapEncoder encoder4 = new TiffBitmapEncoder();
MessageBox.Show(myBitmapMetadata2.IsFixedSize.ToString());
MessageBox.Show(myBitmapMetadata2.IsReadOnly.ToString());
MessageBox.Show(myBitmapMetadata2.Format.ToString());
MessageBox.Show(myBitmapMetadata2.Location.ToString());
encoder4.Frames = decoder2.Frames;
encoder4.Save(stream4);
stream4.Close();
Dim stream4 As New FileStream("image3.tif", FileMode.Create)
Dim myBitmapMetadata2 As New BitmapMetadata("tiff")
Dim encoder4 As New TiffBitmapEncoder()
MessageBox.Show(myBitmapMetadata2.IsFixedSize.ToString())
MessageBox.Show(myBitmapMetadata2.IsReadOnly.ToString())
MessageBox.Show(myBitmapMetadata2.Format.ToString())
MessageBox.Show(myBitmapMetadata2.Location.ToString())
encoder4.Frames = decoder2.Frames
encoder4.Save(stream4)
stream4.Close()

適用対象

こちらもご覧ください