示例#1
0
        public int Extract(int id, string filename)
        {
            var dest = Get($"{nameof(Extract)}-{id}");

            using (var src = new ImageCollection(GetSource(filename), IO))
            {
                src.ExtractAsync(new Progress <Message <int> >()).Wait();
                src.Save(dest);
            }
            return(IO.GetFiles(dest).Count());
        }