Beispiel #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));
        }
Beispiel #2
0
        /// <inheritdoc/>
        public Task <IImageInfo> IdentifyAsync(Configuration configuration, Stream stream)
        {
            var decoder = new PngDecoderCore(configuration, this);

            return(decoder.IdentifyAsync(stream));
        }
Beispiel #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));
        }