mem Posted September 26, 2007 Share Posted September 26, 2007 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 Link to comment Share on other sites More sharing options...
Valuater Posted September 26, 2007 Share Posted September 26, 2007 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) Link to comment Share on other sites More sharing options...
mem Posted September 26, 2007 Author Share Posted September 26, 2007 Hi Id like to know if you can display a tiff in the gui, I have bmp working using the following codesave the tif as a bmp8)1) Im writing a picture viewer / filer2) I asked howto display a tiff3) I allready have bmp's working4) 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. Link to comment Share on other sites More sharing options...
ResNullius Posted September 26, 2007 Share Posted September 26, 2007 1) Im writing a picture viewer / filer2) I asked howto display a tiff3) I allready have bmp's working4) 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=366854by big_daddy embeds Windows' native picture viewer into a Gui, might help? Link to comment Share on other sites More sharing options...
Antiec Posted September 26, 2007 Share Posted September 26, 2007 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. Link to comment Share on other sites More sharing options...
mem Posted September 28, 2007 Author Share Posted September 28, 2007 Thanks alot guys, embedding the windows picture viewer works a treat. 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