A few questions about getting started - general advice neede
Posted: 2007-07-11T10:59:45-07:00
Hello everyone - I have trawled through the forums here, but am still a bit lost as to where to start, so I hope someone can offer me a little advice.
I am writing a program using a language called Dark Basic Professional, (DBP) and need to do a number of image processing tasks which DBP cannot do itself. From what I have read, Imagemagick is perfect for doing this processing. However, as there is no Imagemagick interface for DBP, I'm trying to figure out what options I have. This is what I've tried so far:
Option 1: It is possible to execute a file with command line parameters from DBP, however when you do so, it opens up the nasty black ms-dos command line interface ..... not something I want the users of my program to see - so that's not really an option.
Option 2: It is also possible to call an external dll from DBP - like this:
My question is, is there a precompiled dll for Imagemagick which I could call in this way, and if so, is there a list of the function names and parameters they take? I have tried downloading the ImageMagick-6.3.5-Q16 static dll for windows, which contains various dll's, but I don't know which one to call or how to use it. I tried this:
and a few variations of it, without success - it just returns an error saying it could not call the dll function. Am I barking up the wrong tree here entirely?
Option 3: I could start my program again in a different language. I have done a tiny bit of C++ before, and have used Visual C++ 2005 express, and Dev C++. The problem here is that I can't find any evidence of anyone having used Imagemagick with either of these two compilers. I am reluctant to buy Visual Studio in order to use a free open source library like Imagemagick!
Option 4: I also read somewhere that Imagemagick could be used from the windows script host - and I can run that from DBP. Would that work? Does the interface for WSH have the full functionality of Imagemagick, and could I then redistribute my program, or would Imagemagick have to be installed on the end user's machine to work from a windows script like this?
Are there any other options I haven't considered?
Thanks in advance,
Ric.
I am writing a program using a language called Dark Basic Professional, (DBP) and need to do a number of image processing tasks which DBP cannot do itself. From what I have read, Imagemagick is perfect for doing this processing. However, as there is no Imagemagick interface for DBP, I'm trying to figure out what options I have. This is what I've tried so far:
Option 1: It is possible to execute a file with command line parameters from DBP, however when you do so, it opens up the nasty black ms-dos command line interface ..... not something I want the users of my program to see - so that's not really an option.
Option 2: It is also possible to call an external dll from DBP - like this:
Code: Select all
load dll "dllname",number
result=CALL DLL(number,"functionname",parameter1,parameter2,parameter3......)
Code: Select all
load dll "CORE_RL_Magick++_.dll",1
call dll 1,"image.read","logo.jpg"
and a few variations of it, without success - it just returns an error saying it could not call the dll function. Am I barking up the wrong tree here entirely?
Option 3: I could start my program again in a different language. I have done a tiny bit of C++ before, and have used Visual C++ 2005 express, and Dev C++. The problem here is that I can't find any evidence of anyone having used Imagemagick with either of these two compilers. I am reluctant to buy Visual Studio in order to use a free open source library like Imagemagick!
Option 4: I also read somewhere that Imagemagick could be used from the windows script host - and I can run that from DBP. Would that work? Does the interface for WSH have the full functionality of Imagemagick, and could I then redistribute my program, or would Imagemagick have to be installed on the end user's machine to work from a windows script like this?
Are there any other options I haven't considered?
Thanks in advance,
Ric.