Edit

FileResourceProvider(String, Boolean) Constructor

Definition

Creates a new file resource provider with the specified base directory.

public FileResourceProvider(string baseDirectory, bool preDecode = false);

Parameters

baseDirectory
String

The base directory path from which to load resources.

preDecode
Boolean

If true, images are decoded upfront at load time; if false, images are decoded on-the-fly at rasterization time.

Remarks

By default, images are decoded on-the-fly at rasterization time. Large images may cause jank as decoding is expensive and can thrash internal caches.

Set preDecode to true to force-decode all images upfront, at the cost of potentially more RAM and slower animation build times.

Applies to