Edit

SKGraphiteImageCache.FindOrCreate Method

Definition

Returns the cached Graphite-backed texture for the specified image, uploading and caching it on the recorder if it is not already present.

public SkiaSharp.SKImage FindOrCreate(SkiaSharp.SKGraphiteRecorder recorder, SkiaSharp.SKImage image, bool mipmapped);

Parameters

recorder
SKGraphiteRecorder

The recorder to upload the image to on a cache miss.

image
SKImage

The source image to find or upload.

mipmapped
Boolean

true to create the texture with mipmaps; otherwise, false.

Returns

A Graphite-backed image, or null if the image could not be uploaded.

Applies to