ImgMetadataRemover/ImageCore/Core/ICompressor.cs

22 lines
657 B
C#
Raw Normal View History

using System.IO;
namespace Image.Core
2022-01-22 17:06:10 +00:00
{
2022-01-23 17:30:05 +00:00
/// <summary>
/// ICompressor is an interface for implementing image compressors.
/// </summary>
2022-01-22 17:06:10 +00:00
public interface ICompressor
{
2022-01-23 17:30:05 +00:00
/// <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);
2022-01-22 17:06:10 +00:00
}
}