共用方式為


BitmapCodecInfo.MimeTypes 屬性

定義

取得值,這個值會識別與編解碼器相關聯的 Multipurpose Internet Mail Extensions (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

屬性值

String

多用途網際網路郵件延伸模組 (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)

適用於

另請參閱