BitmapCodecInfo Class
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.
Provides information about an imaging codec.
public ref class BitmapCodecInfo abstract
public abstract class BitmapCodecInfo
type BitmapCodecInfo = class
Public MustInherit Class BitmapCodecInfo
- Inheritance
-
BitmapCodecInfo
The following example demonstrates how to retrieve the Author property of a given BitmapEncoder.
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)
A BitmapCodecInfo can be obtain for each codec in Windows Presentation Foundation (WPF) by using the CodecInfo or the CodecInfo properties.
Bitmap |
Initializes a new instance of BitmapCodecInfo. |
Author |
Gets a value that identifies the author of the codec. |
Container |
Gets a value that identifies the container format for the codec. |
Device |
Gets a value that identifies the device manufacturer of the codec. |
Device |
Gets a value that identifies the device models of the codec. |
File |
Gets a value that identifies the file extensions associated with the codec. |
Friendly |
Gets a value that represents the friendly name of the codec. |
Mime |
Gets a value that identifies the Multipurpose Internet Mail Extensions (MIME) associated with the codec. |
Specification |
Gets a value that identifies the specification version of the codec. |
Supports |
Gets a value that indicates whether the codec supports animation. |
Supports |
Gets a value that indicates whether the codec supports lossless of images. |
Supports |
Gets a value that identifies whether the codec supports multiple frames. |
Version |
Gets a value that identifies the version of the codec. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: