BitmapCodecInfo 類別

定義

提供影像轉碼器的資訊。

public ref class BitmapCodecInfo abstract
public abstract class BitmapCodecInfo
type BitmapCodecInfo = class
Public MustInherit Class BitmapCodecInfo
繼承
BitmapCodecInfo

範例

下列範例示範如何擷取 Author 指定 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)

備註

BitmapCodecInfo您可以使用 或 CodecInfo 屬性,取得 Windows Presentation Foundation (WPF) CodecInfo 中每個編解碼器的 。

建構函式

BitmapCodecInfo()

初始化 BitmapCodecInfo 的新執行個體。

屬性

Author

取得值,識別轉碼器的作者。

ContainerFormat

取得識別轉碼器容器格式的值。

DeviceManufacturer

取得值,識別轉碼器的裝置製造商。

DeviceModels

取得值,以識別轉碼器的裝置模型。

FileExtensions

取得值,以識別此轉碼器所關聯的副檔名。

FriendlyName

取得值,表示轉碼器的易記名稱。

MimeTypes

取得值,這個值會識別與編解碼器相關聯的 Multipurpose Internet Mail Extensions (MIME) 。

SpecificationVersion

取得值,識別轉碼器的規格版本。

SupportsAnimation

取得值,指出轉碼器是否支援動畫。

SupportsLossless

取得值,指出此轉碼器是否支援影像不失真。

SupportsMultipleFrames

取得值,識別轉碼器是否支援多個框架。

Version

取得值,識別轉碼器的版本。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於

另請參閱