From f731412f9f38c9fb4fa10cf6aaf273aa25618663 Mon Sep 17 00:00:00 2001 From: Cameron White Date: Thu, 13 Jun 2013 21:39:13 -0400 Subject: [PATCH] Try a different name for loading libwebp. Hopefully this will be a bit more robust - it is suggested by the Mono docs. --- WebPAddin/NativeMethods.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WebPAddin/NativeMethods.cs b/WebPAddin/NativeMethods.cs index e41181d..fe8c6ad 100644 --- a/WebPAddin/NativeMethods.cs +++ b/WebPAddin/NativeMethods.cs @@ -31,14 +31,14 @@ namespace WebPAddin { public class NativeMethods { - [DllImport ("libwebp")] + [DllImport ("webp")] public static extern int WebPGetInfo(byte[] data, uint data_size, ref int width, ref int height); - [DllImport ("libwebp")] + [DllImport ("webp")] public static extern UIntPtr WebPDecodeBGRAInto(byte[] data, uint data_size, byte[] output_buffer, int output_buffer_size, int output_stride); - [DllImport ("libwebp")] + [DllImport ("webp")] public static extern uint WebPEncodeBGRA(byte[] data, int width, int height, int stride, float quality_factor, ref IntPtr output);