Exemple #1
0
        /// <inheritdoc/>
        public Task <IImageInfo> IdentifyAsync(Configuration configuration, Stream stream, CancellationToken cancellationToken)
        {
            Guard.NotNull(stream, nameof(stream));

            var decoder = new PbmDecoderCore(configuration);

            return(decoder.IdentifyAsync(configuration, stream, cancellationToken));
        }
Exemple #2
0
        /// <inheritdoc/>
        public IImageInfo Identify(Configuration configuration, Stream stream)
        {
            Guard.NotNull(stream, nameof(stream));

            var decoder = new PbmDecoderCore(configuration);

            return(decoder.Identify(configuration, stream));
        }
Exemple #3
0
        /// <inheritdoc/>
        public Task <Image <TPixel> > DecodeAsync <TPixel>(Configuration configuration, Stream stream, CancellationToken cancellationToken)
            where TPixel : unmanaged, IPixel <TPixel>
        {
            Guard.NotNull(stream, nameof(stream));

            var decoder = new PbmDecoderCore(configuration);

            return(decoder.DecodeAsync <TPixel>(configuration, stream, cancellationToken));
        }
Exemple #4
0
        /// <inheritdoc/>
        public Image <TPixel> Decode <TPixel>(Configuration configuration, Stream stream)
            where TPixel : unmanaged, IPixel <TPixel>
        {
            Guard.NotNull(stream, nameof(stream));

            var decoder = new PbmDecoderCore(configuration);

            return(decoder.Decode <TPixel>(configuration, stream));
        }