简体   繁体   中英

C# using DevIL library in winforms

I want to use the ilLoadL function from the devIL library using C#. But when I try to add DevIL.dll to my project it gives me this error:

A reference to the "DevIL.dll" could not be added.Please make sure that the file is accessible and that it is a valid assembly or COM component.

Now i've been searching online for a while and it seems that DevIL does not support .NET? There is a .NET wrapper created for it. I tried that but it doesn't contain the ilLoadL function and such. Only the LoadBitmap and LoadILU.

Is there a way to use DevILs ilLoadL function in C#?

Have you tried using the nuget package? http://www.nuget.org/packages/DevIL.redist/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM