示例#1
0
        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)))
            };
        }
示例#2
0
        public OsbState()
        {
            _img = new Osb();

            EncodingDefinition = OsbSupport.GetEncodingDefinition();
        }