共用方式為


ImageLibrary 類別

定義

public ref class ImageLibrary : Microsoft::VisualStudio::PlatformUI::DisposableObject
[Windows::Foundation::Metadata::WebHostHidden]
class ImageLibrary : Microsoft::VisualStudio::PlatformUI::DisposableObject
[System.Runtime.InteropServices.Guid("8fa80f44-0b82-4a81-9264-ca9e36fa70e4")]
public class ImageLibrary : Microsoft.VisualStudio.PlatformUI.DisposableObject
[<System.Runtime.InteropServices.Guid("8fa80f44-0b82-4a81-9264-ca9e36fa70e4")>]
type ImageLibrary = class
    inherit DisposableObject
Public Class ImageLibrary
Inherits DisposableObject
繼承
ImageLibrary
屬性

建構函式

ImageLibrary(Boolean, ITracer)

初始化 ImageLibrary 物件的新實例。

ImageLibrary(JoinableTaskFactory, Boolean, ITracer)

建構 ImageLibrary 物件

欄位

BeforeImageRealized

在影像從其來源實現之前引發。

DefaultGrayscaleBiasColor

(#40FFFFFF) 偏差灰階影像的預設色彩。 這會產生 75% 的透明效果。

HighContrastGrayscaleBiasColor

在高對比度模式中,偏差灰階影像的色彩。

InvalidImageMoniker

無效的影像Moniker。 使用此 Moniker 的映射無法從映像指令清單載入。

NeutralSize

在 AddCustomImage 呼叫中指定大小中性影像時要使用的大小。 大小中性影像是當要求大小的影像無法使用時,調整為要求大小的影像。

UnknownSize

無效的影像大小。 當影像來源的大小無效時,表示此來源的大小尚未載入。

屬性

AlternateDebugColor

在偵錯模式中呈現的框線替代色彩

CachedImageCount

要儲存在映像快取中的映射數目。

DebugColor

在偵錯模式中呈現的框線色彩

DebugMode

是否應該以偵錯模式轉譯影像,這會新增彩色框線。

Default

ImageLibrary 的默認實例

Initialized

指出連結庫是否已準備好使用。

IsCaching

指出連結庫是否快取其內容

IsDisposed

傳回物件是否已處置一次,防止雙重處置

(繼承來源 DisposableObject)
Tracer

連結庫的追蹤。

UseAsyncCrispImageConverter

是否以異步方式使用 CrispImage 轉換器。

方法

AddCustomCompositeImage(Int16Size, ImageCompositionLayer[])

建立由多個其他影像組成的自定義映像,並將該影像新增至連結庫。

AddCustomImage(IEnumerable<String>, Boolean)
AddCustomImage(ImageSource, Boolean)

直接透過已建立的 ImageSource,將自定義映像新增至連結庫。

AddCustomImageList(ImageMoniker[])

將自定義映像清單新增至連結庫

AddMonikerFormattingDescriptor(String, Guid, Func<IReadOnlyDictionary<Int32,String>>)

新增 ImageMoniker.ToString () 的格式描述元。

Deserialize(JoinableTaskFactory, Stream, Boolean, ITracer)

從還原串行化映像庫 stream

Deserialize(JoinableTaskFactory, Stream, Boolean, ITracer, IStreamStorage<String>)

從還原串行化映像庫 stream

Deserialize(Stream, Boolean, ITracer, IStreamStorage<String>)

stream還原串行化映像庫。

Dispose()

處置目前的 物件,然後隱藏進一步的完成。

(繼承來源 DisposableObject)
Dispose(Boolean)

模式的標準 IDisposable 虛擬多載

(繼承來源 DisposableObject)
DisposeManagedResources()

處置受控資源。

DisposeNativeResources()

允許衍生類別提供原生資源的自定義處置處理

(繼承來源 DisposableObject)
GetCacheSize(Int64, Int64)

取得快取實際使用的位元元組數目。

GetImage(ImageMoniker, ImageAttributes)

從連結庫傳回符合的 attributes 影像

GetImageCount()

連結庫中的影像總數。 判斷自定義映像的計數可能很昂貴,這些映像會以弱式方式儲存。

GetImageListCount()

連結庫中的影像清單總數。 判斷自定義映像的計數可能很昂貴,這些映像會以弱式方式儲存。

GetImageListMonikers()

連結庫中所有影像清單的Moniker。

GetImageListMonikers(ImageMoniker)

傳回指定影像清單中影像的 ImageMonikers 集合。

GetImageMonikers()

連結庫中所有影像的Moniker。

GetImageMonikerType(ImageMoniker)

傳回 ImageMoniker 是否已新增為自定義映像、從指令清單載入,或兩者都不是,這表示我們沒有具有該 Moniker 的映像。

Load(IEnumerable<String>, Boolean, ITracer, IStreamStorage<String>)

從指令清單集合載入 ImageLibrary。

Load(JoinableTaskFactory, IEnumerable<String>, Boolean, Boolean, ITracer)

從指令清單集合載入 ImageLibrary

Load(JoinableTaskFactory, IEnumerable<String>, Boolean, ITracer)

從指令清單集合載入 ImageLibrary

Load(JoinableTaskFactory, IEnumerable<String>, Boolean, ITracer, IStreamStorage<String>)

從指令清單集合載入 ImageLibrary

Load(JoinableTaskFactory, String, Boolean, Boolean, ITracer)

從指令清單載入 ImageLibrary

Load(JoinableTaskFactory, String, Boolean, ITracer)

從指令清單載入 ImageLibrary

Load(JoinableTaskFactory, String, Boolean, ITracer, IStreamStorage<String>)

從指令清單載入 ImageLibrary

Load(String, Boolean, ITracer, IStreamStorage<String>)

從指令清單載入 ImageLibrary。

RemoveCustomImage(IImageHandle)

從連結庫移除自定義映像。 AddCustomImage 必須已新增映像。

RemoveCustomImageList(IImageHandle)

從連結庫移除自定義映像清單。 AddCustomImageList 必須已新增映像。

ResetFormattingDescriptors()

重設 ImageMoniker.ToString 的所有格式描述元 () ;

Serialize(Stream)

將映像庫串行化為 stream

ThrowIfDisposed()

如果已處置此物件,則會擲回 ObjectDisposedException

(繼承來源 DisposableObject)
TryGetMonikerForExtension(String, Boolean, ImageMoniker)

嘗試取得映像的Moniker,以用於擴展名符合 extension的檔案。 如果我們尚未識別要使用的映像,我們會嘗試使用延伸模組之已註冊 ProgID 的 DefaultIcon 屬性加以識別。

TryGetMonikerForProgId(String, Boolean, ImageMoniker)

嘗試取得映像的Moniker,以用於符合 progId的檔案。 如果我們尚未識別要使用的影像,我們會嘗試使用 的 progIdDefaultIcon 屬性加以識別。

事件

BuildLibraryCache

建置連結庫快取時引發。

Disposing

在處置事件時引發,同時仍可存取事件。

(繼承來源 DisposableObject)
ImageLibraryCreated

建立 ImageLibrary 時引發。

ImageLibraryDisposed

處置 ImageLibrary 時引發。

InitializedChanged

當連結庫完成初始化時引發。

ProcessManifest

當有進程指令清單時引發。

適用於