예제 #1
0
        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);
        }
예제 #2
0
 private static void _freeImageSaveErrorHandler(FI.FREE_IMAGE_FORMAT fif, string message)
 {
     // Callback method as required by FreeImage to report problems
     throw new AxiomException(message);
 }