public async Task Load(IFileSystem fileSystem, UPath filePath, LoadContext loadContext) { var fileStream = await fileSystem.OpenFileAsync(filePath); Images = new List <IKanvasImage> { new KanvasImage(EncodingDefinition, _img.Load(fileStream, OsbSupport.DeterminePlatform(filePath))) }; }
public OsbState() { _img = new Osb(); EncodingDefinition = OsbSupport.GetEncodingDefinition(); }