Esempio n. 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);
        }
Esempio n. 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);
 }