ImgMetadataRemover/ImageCore/Core/ICompressor.cs

22 lines
No EOL
657 B
C#

using System.IO;
namespace Image.Core
{
/// <summary>
/// ICompressor is an interface for implementing image compressors.
/// </summary>
public interface ICompressor
{
/// <summary>
/// The method compresses an image in place.
/// </summary>
/// <param name="fileName">The file name of the image to be compressed.</param>
void Compress(string fileName);
/// <summary>
/// The method compresses an image in place.
/// </summary>
/// <param name="stream">The stream of the image to be compressed.</param>
void Compress(Stream stream);
}
}