Exemplo n.º 1
0
        /// <inheritdoc/>
        public Task <IImageInfo> IdentifyAsync(Configuration configuration, Stream stream)
        {
            var decoder = new PngDecoderCore(configuration, this);

            using var bufferedStream = new BufferedReadStream(configuration, stream);
            return(decoder.IdentifyAsync(bufferedStream));
        }
Exemplo n.º 2
0
        /// <inheritdoc/>
        public Task <IImageInfo> IdentifyAsync(Configuration configuration, Stream stream)
        {
            var decoder = new PngDecoderCore(configuration, this);

            return(decoder.IdentifyAsync(stream));
        }
Exemplo n.º 3
0
        /// <inheritdoc/>
        public Task <IImageInfo> IdentifyAsync(Configuration configuration, Stream stream, CancellationToken cancellationToken)
        {
            var decoder = new PngDecoderCore(configuration, this);

            return(decoder.IdentifyAsync(configuration, stream, cancellationToken));
        }