Catalog/CatalogLib/ImgSharpCreator.cs
2017-02-28 09:59:17 +01:00

26 lines
579 B
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ImageSharp;
using ImageSharp.Formats;
using ImageSharp.Processing.Processors;
namespace CatalogLib
{
public class ImgSharpCreator : IImageProcessor
{
public void Start(FileInfo workFile)
{
using (Image image = new Image(workFile.Name))
{
JpegDecoder j = new JpegDecoder();
image.Resize(200, 200).Save("");
}
}
}
}