Exemplo n.º 1
0
        public async ValueTask <IImage> FromStreamAsync(Stream source, CancellationToken cancellationToken = default)
        {
            var data = await DebugImageData.DeserializeAsync(source, cancellationToken);

            return(new DebugImage(new Size(data.Width, data.Height), data.ImageType));
        }