BitmapCodecInfo.MimeTypes 属性

定义

获取一个值,该值标识与编解码器关联的多用途 Internet 邮件扩展 (MIME) 。

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

属性值

多用途 Internet 邮件扩展 (MIME) 与编解码器关联的类型。

属性

示例

下面的示例演示如何检索 Author 给定 BitmapEncoder的 属性。 可以使用同一方法来检索其他 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)

适用于

另请参阅