Bagikan melalui


BitmapCodecInfo.Version Properti

Definisi

Mendapatkan nilai yang mengidentifikasi versi codec.

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

Nilai Properti

Versi codec.

Atribut

Contoh

Contoh berikut menunjukkan cara mengambil Author properti dari .BitmapEncoder Anda dapat menggunakan pendekatan yang sama untuk mengambil yang lain BitmapCodecInfo.

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)

Berlaku untuk

Lihat juga