Sign in to follow this  
Followers 0
mem

display a tiff in gui

6 posts in this topic

Hi Id like to know if you can display a tiff in the gui, I have bmp working using the following code

$gui_browser = GUICtrlCreatePic($u, 10, 320, 780, 300)
GUICtrlSetImage ($gui_browser, $u)
but it does not work when $u = a tiff / tif file. Suggestions please :)

Share this post


Link to post
Share on other sites



Hi Id like to know if you can display a tiff in the gui, I have bmp working using the following code

$gui_browser = GUICtrlCreatePic($u, 10, 320, 780, 300)
 GUICtrlSetImage ($gui_browser, $u)
but it does not work when $u = a tiff / tif file. Suggestions please :)
save the tif as a bmp

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Hi Id like to know if you can display a tiff in the gui, I have bmp working using the following code

save the tif as a bmp

8)

1) Im writing a picture viewer / filer

2) I asked howto display a tiff

3) I allready have bmp's working

4) whats the point of writing an app for viewing tiffs if your solution is to have the end user export each individual tiff to bmp, its not very autoit is it ?

So I ask again does any1 have a solution for displaying a TIFF file - read Valuater a "TIFF" file, not a BMP.

If autoit is unable to display tiff's at all please let me know, but Im sure it must have some way of achieving it given how many other windows objects can be embedded.

Share this post


Link to post
Share on other sites

1) Im writing a picture viewer / filer

2) I asked howto display a tiff

3) I allready have bmp's working

4) whats the point of writing an app for viewing tiffs if your solution is to have the end user export each individual tiff to bmp, its not very autoit is it ?

So I ask again does any1 have a solution for displaying a TIFF file - read Valuater a "TIFF" file, not a BMP.

If autoit is unable to display tiff's at all please let me know, but Im sure it must have some way of achieving it given how many other windows objects can be embedded.

No tiff display built-in to AutoIt (that I know of) but this post http://www.autoitscript.com/forum/index.ph...=0&p=366854

by big_daddy embeds Windows' native picture viewer into a Gui, might help?

Share this post


Link to post
Share on other sites

You could always use those _GDIP_ functions from the Auto3Lib. They're Windows GDI+ functions and support opening tiffs etc. It works in a bit peculiar way, but I'll try to help if you can't make it work.

Share this post


Link to post
Share on other sites

Thanks alot guys, embedding the windows picture viewer works a treat.

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