pdaughe Posted October 30, 2006 Share Posted October 30, 2006 Wow, a person can become very blurry-eyed searching these forums! I need some help. I want to be able to display pictures (.jpg) from our digital camera from an AutoIT script. I've tried using GUICtrlCreatePic and it works, but I've found there's quite a bit to it to scale the images appropriately and to provide a zoom function. Can these things be done in AutoIt? Does anyone know of an ActiveX control for image viewing that is scriptable in AutoIt? I wouldn't mind buying an ActiveX control to accomplish the viewing requirement -- I don't think I have the knowledge or time to get it done any other way... Thanks in advance for your guidance. Paul Link to comment Share on other sites More sharing options...
pdaughe Posted October 30, 2006 Author Share Posted October 30, 2006 Thanks Larry -- I download your image info reader and it works great. You are making me look good to my wife! Is it possible to provide an imaging zooming funtion in Autoit? It's a lot to ask, but any quick tips? Usually if someone points me in the right direction I can figure out the details. Thanks so much again. Link to comment Share on other sites More sharing options...
pdaughe Posted October 30, 2006 Author Share Posted October 30, 2006 Like when the image is displayed, you press a key to zoom in on it, like in ACDSee. Link to comment Share on other sites More sharing options...
pdaughe Posted October 30, 2006 Author Share Posted October 30, 2006 Does anyone know of a image viewing OCX or ActiveX control that is scriptable in AutoIt? Link to comment Share on other sites More sharing options...
CoderDunn Posted October 30, 2006 Share Posted October 30, 2006 (edited) Do something like $Pic_Width = 300 $Pic_Height = 300 $Zoom_Mult = 2 GUICtrlCreatePic("C:\Test Pic.jpg",-1($Pic_Width / $Zoom_Mult),-1($Pic_Height/ $Zoom_Mult),$Pic_Width * $Zoom_Mult, $Pic_Height * $Zoom_Mult) Then have the GUI the same size as the pic ... And use GUICtrlSetPos() for panning. Or just double the size (2X zoom) of the pic control and the GUI holding it. Hallman Edited October 30, 2006 by Hallman Parsix 1 Link to comment Share on other sites More sharing options...
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