BitmapCodecInfo.MimeTypes Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that identifies the Multipurpose Internet Mail Extensions (MIME) associated with the codec.
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
Property Value
The Multipurpose Internet Mail Extensions (MIME) types associated with the codec.
- Attributes
Examples
The following example demonstrates how to retrieve the Author property of a given BitmapEncoder. You can use the same approach to retrieve other 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)
Applies to
See also
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.