Sign in to follow this  
Followers 0
pdaughe

Viewing Images

5 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

Like when the image is displayed, you press a key to zoom in on it, like in ACDSee.

Share this post


Link to post
Share on other sites

Does anyone know of a image viewing OCX or ActiveX control that is scriptable in AutoIt?

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by Hallman

Share this post


Link to post
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
Sign in to follow this  
Followers 0