BitmapDecoder.CodecInfo BitmapDecoder.CodecInfo BitmapDecoder.CodecInfo BitmapDecoder.CodecInfo Property

定義

このコーデックを説明する情報を取得します。Gets information that describes this codec.

public:
 virtual property System::Windows::Media::Imaging::BitmapCodecInfo ^ CodecInfo { System::Windows::Media::Imaging::BitmapCodecInfo ^ get(); };
[get: System.Security.SecurityCritical]
public virtual System.Windows.Media.Imaging.BitmapCodecInfo CodecInfo { get; }
member this.CodecInfo : System.Windows.Media.Imaging.BitmapCodecInfo
Public Overridable ReadOnly Property CodecInfo As BitmapCodecInfo

プロパティ値

BitmapCodecInfo のインスタンス。An instance of BitmapCodecInfo. このプロパティには既定値はありません。This property has no default value.

次のコード例からの情報を読み取る方法を示しています、BitmapCodecInfoオブジェクトを文字列に送信します。The following code example shows how to read information from a BitmapCodecInfo object and send it to a string.

FileStream stream = new FileStream("empty.tif", FileMode.Create);
TiffBitmapEncoder encoder = new TiffBitmapEncoder();
TextBlock myTextBlock = new TextBlock();
myTextBlock.Text = "Codec Author is: " + encoder.CodecInfo.Author.ToString();
encoder.Frames.Add(BitmapFrame.Create(image));
MessageBox.Show(myPalette.Colors.Count.ToString());
encoder.Save(stream);
Dim stream As New FileStream("empty.tif", FileMode.Create)
Dim encoder As New TiffBitmapEncoder()
Dim myTextBlock As New TextBlock()
myTextBlock.Text = "Codec Author is: " + encoder.CodecInfo.Author.ToString()
encoder.Frames.Add(BitmapFrame.Create(image))
MessageBox.Show(myPalette.Colors.Count.ToString())
encoder.Save(stream)

注釈

ABitmapCodecInfo実装はすべてコーデックの必須です。A BitmapCodecInfo implementation is required for every codec.

適用対象

こちらもご覧ください