FileResourceProvider(String, Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.