/// <summary> /// /// </summary> /// <param name="processable"></param> /// <param name="sourcePath"></param> /// <param name="savePath"></param> /// <returns></returns> public static TryResult ProcessBitmap(IImageBuilder processable, string sourcePath, string savePath) { if (processable == null) return false; if (!File.Exists(sourcePath)) return false; try { processable.SetSourceImage(sourcePath); var image = processable.ProcessBitmap(); image.Save(savePath); } catch (Exception ex) { return ex; } return true; }