mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.5 KiB
40 lines
1.5 KiB
// <copyright file="TiffEncoder.cs" company="James Jackson-South">
|
|
// Copyright (c) James Jackson-South and contributors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
// </copyright>
|
|
|
|
namespace ImageSharp.Formats
|
|
{
|
|
using System;
|
|
using System.IO;
|
|
|
|
/// <summary>
|
|
/// Encoder for writing the data image to a stream in TIFF format.
|
|
/// </summary>
|
|
public class TiffEncoder : IImageEncoder
|
|
{
|
|
/// <inheritdoc/>
|
|
public void Encode<TColor>(Image<TColor> image, Stream stream, IEncoderOptions options)
|
|
where TColor : struct, IPixel<TColor>
|
|
{
|
|
ITiffEncoderOptions tiffOptions = TiffEncoderOptions.Create(options);
|
|
|
|
this.Encode(image, stream, tiffOptions);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Encodes the image to the specified stream from the <see cref="Image{TColor}"/>.
|
|
/// </summary>
|
|
/// <typeparam name="TColor">The pixel format.</typeparam>
|
|
/// <param name="image">The <see cref="Image{TColor}"/> to encode from.</param>
|
|
/// <param name="stream">The <see cref="Stream"/> to encode the image data to.</param>
|
|
/// <param name="options">The options for the encoder.</param>
|
|
public void Encode<TColor>(Image<TColor> image, Stream stream, ITiffEncoderOptions options)
|
|
where TColor : struct, IPixel<TColor>
|
|
{
|
|
throw new NotImplementedException();
|
|
// TiffEncoderCore encode = new TiffEncoderCore(options);
|
|
// encode.Encode(image, stream);
|
|
}
|
|
}
|
|
}
|
|
|