c.haslam Posted March 27, 2019 Posted March 27, 2019 If this is all you need to do, try using Irfanview, a free and excellent image tool. It has a batch mode. The learning curve is reasonable. I have never had to do what you need to do using FreeImage. I have written a script that, amongst many other things, runs Irfanview. Your English is excellent! Spoiler CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard
RafaelGioffi Posted August 13, 2021 Posted August 13, 2021 Hey guys! I'm trying to use a _FreeImage_ConvertToGreyscale function and it's not working. I don't understand why... I'll put the code for the function: #include <FreeImage_x86x64.au3> ;~ FreeImage _FreeImage_LoadDLL(@ScriptDir & "\Bin\FreeImage.dll") _FreeImage_Initialise() ;~ end of initial verification... GUISetState(@SW_SHOW) $arquivo = @ScriptDir & "\Captures\img.jpg" $conv = "img_conv.jpg" $FIF = _FreeImage_GetFileTypeU($arquivo) If $FIF = $FIF_UNKNOWN Then $FIF = _FreeImage_GetFIFFromFilenameU($arquivo) EndIf $hImage = _FreeImage_LoadU($FIF, $arquivo) $imagem = _FreeImage_ConvertToGreyscale($hImage) _FreeImage_SaveU($FIF, $imagem, "img_conv") Note: The FreeImage.au3 file I can't find for download, I only got the FreeImage_x86x64.au3 (I don't know if it's the same thing) Thanks!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now