This documentation is archived and is not being maintained.
BitmapCodecInfo Class
Visual Studio 2008
Provides information about an imaging codec.
Assembly: PresentationCore (in PresentationCore.dll)
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)
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: