예제 #1
0
 public void ResizePicture(string filename, ImageGeometry geometry)
 {
     _processor.Resize(
         _storage.GetPicturePath(filename),
         _storage.GetPicturePath(filename, geometry),
         geometry)
     .Wait();
 }
예제 #2
0
 public async Task<ImageGeometry> Resize(string filename, string target, ImageGeometry newSize)
 {
     await ExecuteProcess("convert", String.Format("-resize {0}x{1} \"{2}\" \"{3}\"", newSize.Width, newSize.Height, filename, target));
     return await GetGeometry(target);
 }
예제 #3
0
 public string GetPicturePath(string filename, ImageGeometry geometry)
 {
     return GetPicturePath(filename, "_" + geometry.ToString());
 }