Jump to content

how to use Devil image library in AutoIt?


odklizec
 Share

Recommended Posts

Hi folks,

Anyone here find a solution how to use Devil image library with AutoIt? I tried this, but it seems it does nothing B)

$dll_il = DllOpen("D:\temp\_install\SDK\lib\devil.dll")
$result = DllCall($dll_il,1,"ilInit")
$result = DllCall($dll_il,0,"ilGenImages",1,$result)
$result = DllCall($dll_il,"ilBindImage",$result)
;load image
$result = DllCall($dll_il,"ilLoadImage", "D:\temp\_install\SDK\images\DevIL.bmp")
;get width
$Width = DllCall($dll_il,"ilGetInteger", "IL_IMAGE_WIDTH")
$RetVal=MsgBox(54, "width", $Width)
$result = DllCall($dll_il,"ilEnable","IL_FILE_OVERWRITE")
;save as new file
$result = DllCall($dll_il,"ilSaveImage", "D:\temp\_install\SDK\images\DevIL1.bmp")
$dll_il_close=DllClose ($dll_il)
$RetVal=MsgBox(54, "close", $dll_il_close)

The correct steps how to load and use images via Devil can be found here...

http://openil.sourceforge.net/tuts/tut_step/index.htm

I'm sure, the problem is in creating ImageName, but I cannot find how to use it properly :o Any ideas..?

Link to comment
Share on other sites

man put this in the support forum, there a BIG text with "this is NOT the generals support forum"

learn to read the rulez

*If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...