語言

PngBitmapDecoder 類別

定義

定義可攜式網路圖形(PNG)編碼影像的解碼器。

public ref class PngBitmapDecoder sealed : System::Windows::Media::Imaging::BitmapDecoder
public sealed class PngBitmapDecoder : System.Windows.Media.Imaging.BitmapDecoder
type PngBitmapDecoder = class
    inherit BitmapDecoder
Public NotInheritable Class PngBitmapDecoder
Inherits BitmapDecoder
繼承

建構函式

名稱 Description
PngBitmapDecoder(Stream, BitmapCreateOptions, BitmapCacheOption)

從指定的檔案串流中初始化一個 PngBitmapDecoder 新的實例,並具有指定的 createOptions 和 cacheOption。

PngBitmapDecoder(Uri, BitmapCreateOptions, BitmapCacheOption)

從指定PngBitmapDecoder中初始化一個新的 實Uri例,並指定為 createOptionscacheOption和 。

屬性

名稱 Description
CodecInfo

能取得描述這個編解碼器的資訊。

(繼承來源 BitmapDecoder)
ColorContexts

會得到一個代表與點陣圖相關的色彩配置的值(如果有定義的話)。

(繼承來源 BitmapDecoder)
Dispatcher

了解 Dispatcher 這與此 DispatcherObject 有關。

(繼承來源 DispatcherObject)
Frames

取得點陣圖中單一幀的內容。

(繼承來源 BitmapDecoder)
IsDownloading

會得到一個值,表示解碼器是否正在下載內容。

(繼承來源 BitmapDecoder)
Metadata

若定義了元資料,則會獲得代表與此位圖相關的全域元資料的實例 BitmapMetadata 。

(繼承來源 BitmapDecoder)
Palette

會跟 BitmapPalette 這個解碼器相關聯。

(繼承來源 BitmapDecoder)
Preview

會得到 BitmapSource 代表該位圖全域預覽(如果有定義的話)。

(繼承來源 BitmapDecoder)
Thumbnail

如果有定義,則會得到 BitmapSource 代表位圖縮圖的縮圖。

(繼承來源 BitmapDecoder)

方法

名稱 Description
CheckAccess()

判斷呼叫執行緒是否能存取此 DispatcherObject。

(繼承來源 DispatcherObject)
CreateInPlaceBitmapMetadataWriter()

建立一個 的 InPlaceBitmapMetadataWriter實例,可用來更新位圖的元資料。

(繼承來源 BitmapDecoder)
Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type。

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

將 a BitmapDecoderString的當前值轉換為 。

(繼承來源 BitmapDecoder)
VerifyAccess()

強制呼叫執行緒能存取此 DispatcherObject。

(繼承來源 DispatcherObject)

事件

名稱 Description
DownloadCompleted

當 a BitmapDecoder 下載完點陣圖內容時會發生。

(繼承來源 BitmapDecoder)
DownloadFailed

當點陣圖內容下載失敗時會發生。

(繼承來源 BitmapDecoder)
DownloadProgress

當 a BitmapDecoder 在下載點陣圖內容取得進展時會發生。

(繼承來源 BitmapDecoder)

適用於

另請參閱