/// <inheritdoc/> public Task EncodeAsync <TPixel>(Image <TPixel> image, Stream stream, CancellationToken cancellationToken) where TPixel : unmanaged, IPixel <TPixel> { var encoder = new PbmEncoderCore(image.GetConfiguration(), this); return(encoder.EncodeAsync(image, stream, cancellationToken)); }
/// <inheritdoc/> public void Encode <TPixel>(Image <TPixel> image, Stream stream) where TPixel : unmanaged, IPixel <TPixel> { var encoder = new PbmEncoderCore(image.GetConfiguration(), this); encoder.Encode(image, stream); }