FreeImage C# DllNotFoundException

1.9k Views Asked by At

Throw Nuget Package Manager, I've downloaded this version of FreeImage that seems to be the easyer version to use. The version name is : VVVV.FreeImage
The link : https://www.nuget.org/packages/VVVV.FreeImage/
When I try to use the library I have a DllNotFoundException.
Here is some code :

using FreeImageAPI;

namespace MySoft
{
    public partial class MainWindow : Window
    { 
        public MainWindow()
        {
            FIBITMAP dibSource = FreeImage.Load(FREE_IMAGE_FORMAT.FIF_JPEG, "test", FREE_IMAGE_LOAD_FLAGS.JPEG_ACCURATE);
        }
    }
}

I get the code error : HRESULT : 0x8007007E
Thank You

0

There are 0 best solutions below