BitmapCodecInfo Class

Provides information about a given codec. This is an abstract class.

Namespace: System.Windows.Media.Imaging
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

'Declaration
Public MustInherit Class BitmapCodecInfo
'Usage
Dim instance As BitmapCodecInfo

public abstract class BitmapCodecInfo
public abstract class BitmapCodecInfo
This class is abstract; see Inheritance Hierarchy for derived non-abstract classes usable in XAML.

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

The following example demonstrates how to retrieve the Author property of a given BitmapEncoder.

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)

System.Object
  System.Windows.Media.Imaging.BitmapCodecInfo

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show: