LateBoundBitmapDecoder.CodecInfo Property

Definition

Gets information that describes this codec.

C#
public override System.Windows.Media.Imaging.BitmapCodecInfo CodecInfo { [System.Security.SecurityCritical] get; }
C#
public override System.Windows.Media.Imaging.BitmapCodecInfo CodecInfo { get; }

Property Value

An instance of BitmapCodecInfo. This property has no default value. If the late bound decoder is still downloading, this property returns null.

Attributes

Examples

The following example shows how to read information from a BitmapCodecInfo object and send it to a string.

C#
FileStream stream = new FileStream("new.bmp", FileMode.Create);
BmpBitmapEncoder encoder = new BmpBitmapEncoder();
TextBlock myTextBlock = new TextBlock();
myTextBlock.Text = "Codec Author is: " + encoder.CodecInfo.Author.ToString();
encoder.Frames.Add(BitmapFrame.Create(image));
encoder.Save(stream);

Applies to

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, 10

See also