lordicast Posted August 19, 2007 Posted August 19, 2007 How do show a .png image in a GUI? Been trying for a while now, viewing other post script that are to complicated i need the simple version please. [Cheeky]Comment[/Cheeky]
Zedna Posted August 19, 2007 Posted August 19, 2007 Read Autoit helpfile! #include <GUIConstants.au3> GUICreate("My GUI picture",350,300,-1,-1,$WS_SIZEBOX+$WS_SYSMENU) GUICtrlCreatePic(@ScriptDir & "\image.png",50,50, 200,50) GUISetState () While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Resources UDF ResourcesEx UDF AutoIt Forum Search
lordicast Posted August 20, 2007 Author Posted August 20, 2007 still not showing the .png is there a specific png format? [Cheeky]Comment[/Cheeky]
Zedna Posted August 20, 2007 Posted August 20, 2007 still not showing the .png is there a specific png format?Now I tried it and I'm surprised.It's really not working! It's not directly supported.Sorry then. You must use some less/more complicated workaroundsBy me it's the ideal to use Auto3Lib and it's GDI+ functionsLook here and here Resources UDF ResourcesEx UDF AutoIt Forum Search
lordicast Posted August 20, 2007 Author Posted August 20, 2007 yeah i saw alot of these still no answers thanks anyway [Cheeky]Comment[/Cheeky]
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