Using .dll methods to load data from file in C# code
- by Espinas.iss
I want to use in C# these methods:
* int LibRaw::open_datastream(LibRaw_abstract_datastream *stream)
* int LibRaw::open_file(const char *rawfile)
* int LibRaw::open_buffer(void *buffer, size_t bufsize)
* int LibRaw::unpack(void)
* int LibRaw::unpack_thumb(void)
that are stored in a libraw.dll. These functions one by one load data from file... I've been reading about P/Invoke but i'm not sure how to invoke them. Can anyone show me an example how to use all of these functions together in C# to load file (raw image stored in folder) or just how to PIvoke one of them.
Thanx!