BitmapCodecInfo Class

Definition

Provides information about an imaging codec.

public ref class BitmapCodecInfo abstract
public abstract class BitmapCodecInfo
type BitmapCodecInfo = class
Public MustInherit Class BitmapCodecInfo
Inheritance
BitmapCodecInfo

Examples

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)

Remarks

A BitmapCodecInfo can be obtain for each codec in Windows Presentation Foundation (WPF) by using the CodecInfo or the CodecInfo properties.

Constructors

BitmapCodecInfo()

Initializes a new instance of BitmapCodecInfo.

Properties

Author

Gets a value that identifies the author of the codec.

ContainerFormat

Gets a value that identifies the container format for the codec.

DeviceManufacturer

Gets a value that identifies the device manufacturer of the codec.

DeviceModels

Gets a value that identifies the device models of the codec.

FileExtensions

Gets a value that identifies the file extensions associated with the codec.

FriendlyName

Gets a value that represents the friendly name of the codec.

MimeTypes

Gets a value that identifies the Multipurpose Internet Mail Extensions (MIME) associated with the codec.

SpecificationVersion

Gets a value that identifies the specification version of the codec.

SupportsAnimation

Gets a value that indicates whether the codec supports animation.

SupportsLossless

Gets a value that indicates whether the codec supports lossless of images.

SupportsMultipleFrames

Gets a value that identifies whether the codec supports multiple frames.

Version

Gets a value that identifies the version of the codec.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also