private static void _freeImageLoadErrorHandler(FI.FREE_IMAGE_FORMAT fif, string message) { // Callback method as required by FreeImage to report problems var format = FI.FreeImage.GetFormatFromFIF(fif); LogManager.Instance.Write("FreeImage error: '{0}'{1}", message, string.IsNullOrEmpty(format) ? "." : " when loading format " + format); }
private static void _freeImageSaveErrorHandler(FI.FREE_IMAGE_FORMAT fif, string message) { // Callback method as required by FreeImage to report problems throw new AxiomException(message); }