コード例 #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));
        }
コード例 #2
0
ファイル: PngDecoder.cs プロジェクト: wilka/ImageSharp
        /// <inheritdoc/>
        public Task <IImageInfo> IdentifyAsync(Configuration configuration, Stream stream)
        {
            var decoder = new PngDecoderCore(configuration, this);

            return(decoder.IdentifyAsync(stream));
        }
コード例 #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));
        }