SKGraphics 類別

定義

提供 Skia 圖形操作的全域設定與快取管理。

public static class SKGraphics
繼承
SKGraphics

方法

名稱 Description
DumpMemoryStatistics(SKTraceMemoryDump)

將記憶體統計資料傾印至指定的追蹤記憶體傾出物件。

GetFontCacheCountLimit()

取得字型快取中允許的最大條目數。

GetFontCacheCountUsed()

會取得字型快取中目前的條目數量。

GetFontCacheLimit()

取得字型快取允許的最大位元組數。

GetFontCacheUsed()

取得字型快取目前使用的位元組數。

GetResourceCacheSingleAllocationByteLimit()

取得單一資源快取項目可分配的最大位元組數。

GetResourceCacheTotalByteLimit()

取得資源快取允許的最大位元組數。

GetResourceCacheTotalBytesUsed()

取得資源快取目前使用的位元組數。

Init()

初始化 Skia 圖形系統。

PurgeAllCaches()

清除所有快取資料,包括字型快取和資源快取。

PurgeFontCache()

清除所有快取的字型資料。

PurgeResourceCache()

清除所有快取的資源資料。

SetFontCacheCountLimit(Int32)

設定字型快取中允許的最大條目數量。

SetFontCacheLimit(Int64)

設定字型快取允許的最大位元組數。

SetResourceCacheSingleAllocationByteLimit(Int64)

設定單一資源快取項目可分配的最大位元組數。

SetResourceCacheTotalByteLimit(Int64)

設定資源快取允許的最大位元組數。

適用於