Method TryLoadFileAsSurface
- Namespace
- PaintDotNet
- Assembly
- PaintDotNet.Data.dll
TryLoadFileAsSurface(IFileTypesService, string)
A wrapper around LoadFileAsSurface(IFileTypesService, string) that returns null if an exception is thrown.
public static Surface? TryLoadFileAsSurface(this IFileTypesService service, string filePath)
Parameters
service
IFileTypesServicefilePath
string