BitmapMetadata.Format BitmapMetadata.Format BitmapMetadata.Format BitmapMetadata.Format Property

定義

イメージの形式を識別する値を取得します。Gets a value that identifies the format of the image.

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

プロパティ値

ビットマップ イメージの形式。The format of the bitmap image.

次のコード例は、 BitmapMetadataオブジェクトのさまざまなプロパティを読み取り、その値を文字列MessageBoxとしてに送信する方法を示しています。The following code example demonstrates how to read various properties of the BitmapMetadata object and send their values to a MessageBox as strings.

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()

適用対象