BitmapCodecInfo Class

BitmapCodecInfo Class

 

Provides information about an imaging codec.

Namespace:   System.Windows.Media.Imaging
Assembly:  PresentationCore (in PresentationCore.dll)

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

Public MustInherit Class BitmapCodecInfo

NameDescription
System_CAPS_protmethodBitmapCodecInfo()

Initializes a new instance of BitmapCodecInfo.

NameDescription
System_CAPS_pubpropertyAuthor

Gets a value that identifies the author of the codec.

System_CAPS_pubpropertyContainerFormat

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

System_CAPS_pubpropertyDeviceManufacturer

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

System_CAPS_pubpropertyDeviceModels

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

System_CAPS_pubpropertyFileExtensions

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

System_CAPS_pubpropertyFriendlyName

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

System_CAPS_pubpropertyMimeTypes

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

System_CAPS_pubpropertySpecificationVersion

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

System_CAPS_pubpropertySupportsAnimation

Gets a value that indicates whether the codec supports animation.

System_CAPS_pubpropertySupportsLossless

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

System_CAPS_pubpropertySupportsMultipleFrames

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

System_CAPS_pubpropertyVersion

Gets a value that identifies the version of the codec.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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)

.NET Framework
Available since 3.0

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

Return to top
Show:
© 2016 Microsoft