Closed rahulpatel033 closed 7 years ago
you should be able to use the ffi library to extract the information you need: http://luajit.org/ext_ffi.html
Honestly, I'm new to lua. I started to learn few weeks ago. I checked ffi library and passed the second argument like local len = ffi.new("size_t[?]", 5)
, but I don't understand why it returns boolean true. It should be an array of PixelWand wands. I don't know what I missed.
I have been trying to implement MagickGetImageHistogram, so I have changed two files. below is my change. image.lua
lib.lua
But when I called MagickGetImageHistogram function from image.lua, it always return bool true. I don't understand what I missed. In documentation it says
So how do I convert it to lua table?