示例#1
0
        /// <inheritdoc/>
        public void Encode <TPixel>(Image <TPixel> image, Stream stream)
            where TPixel : struct, IPixel <TPixel>
        {
            var encoder = new GifEncoderCore(image.GetConfiguration().MemoryManager, this);

            encoder.Encode(image, stream);
        }
示例#2
0
        /// <inheritdoc/>
        public void Encode <TPixel>(Image <TPixel> image, Stream stream)
            where TPixel : unmanaged, IPixel <TPixel>
        {
            var encoder = new GifEncoderCore(image.GetConfiguration(), this);

            encoder.Encode(image, stream);
        }
示例#3
0
        /// <inheritdoc/>
        public Task EncodeAsync <TPixel>(Image <TPixel> image, Stream stream, CancellationToken cancellationToken)
            where TPixel : unmanaged, IPixel <TPixel>
        {
            var encoder = new GifEncoderCore(image.GetConfiguration(), this);

            return(encoder.EncodeAsync(image, stream, cancellationToken));
        }
示例#4
0
        /// <inheritdoc/>
        public void Encode <TPixel>(Image <TPixel> image, Stream stream)
            where TPixel : struct, IPixel <TPixel>
        {
            var encoder = new GifEncoderCore(this);

            encoder.Encode(image, stream);
        }