/// <summary> /// Initializes the module. /// </summary> public static void Initialize() { try { VipsInitialized = Base.VipsInit(); if (!VipsInitialized) { Exception = new VipsException("unable to initialize libvips"); } } catch (Exception e) { VipsInitialized = false; Exception = e; } }
/// <summary> /// Initializes the module. /// </summary> public static void Initialize() { try { VipsInitialized = Base.VipsInit(); if (VipsInitialized) { Version = Base.Version(0, false); Version = (Version << 8) + Base.Version(1, false); Version = (Version << 8) + Base.Version(2, false); } else { Exception = new VipsException("unable to initialize libvips"); } } catch (Exception e) { VipsInitialized = false; Exception = e; } }