AutoHotkey Community

It is currently May 27th, 2012, 9:20 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: December 24th, 2011, 10:26 pm 
Offline

Joined: March 23rd, 2006, 2:20 pm
Posts: 128
I am expecting to see the lower half of the image, but there is only the background:

Code:
SplashImage, %IMAGEFILE%, zh400 zy-200 h200,,, IMAGE


Please tell me what I am doing wrong.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 25th, 2011, 4:45 am 
Online
User avatar

Joined: September 5th, 2009, 2:06 pm
Posts: 1714
Location: Somewhere near you
Code:
SplashImage, %IMAGEFILE%, zh400 zw-1,,, IMAGE
:?:

_________________
Image
The quick onyx goblin jumps over the lazy dwarf


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 25th, 2011, 7:36 am 
Offline

Joined: March 23rd, 2006, 2:20 pm
Posts: 128
This show the entire image, with proportional w, and not the lower half of the image

Code:
IMAGEFILE = images.jpg
SplashImage, %IMAGEFILE%, zh400 zw-1,,, IMAGE
Sleep 3000


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 25th, 2011, 4:31 pm 
Offline

Joined: March 23rd, 2006, 2:20 pm
Posts: 128
A Gui works, with the appropriate margins, as expected.

Code:
Gui, Add, Picture ...


Therefore, I think the SplashImage is bugfull.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: December 25th, 2011, 5:26 pm 
rousni wrote:
I am expecting to see the lower half of the image


Why??

Code:
SplashImage, %IMAGEFILE%, zh400 zy-200 h200,,, IMAGE


ZY is for the margins, it doesn't affect what part of an image is shown. You can't really do that with the inbuilt options. You could try using Winset...Region on a gui but you'd probably not like the result. Why not just edit the image?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 25th, 2011, 6:10 pm 
Offline

Joined: March 23rd, 2006, 2:20 pm
Posts: 128
Quote:
ZY is for the margins


Exactly - with a negative margin you can (you should be able to) hide a part of the image. With a "normal" Gui and a "normal" Picture control it's OK.

And very curiously, with small enough margins it's ok with SplashImage too.

Quote:
Why not just edit the image?

Because this is a graph which domain i have to redimention on the fly according to some parameters.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 26th, 2011, 5:48 am 
Ok, I see what you mean, basically moving a control off a gui so you only see part of it (but the whole imagel is still there just not visible). I don't think this works with Splashimage as it's treated like a control in itself, even though it's a window.

I manage to get it to show a section of an image but Splashimage seems to trim off a certain amount of an outlying image, so your -200 is probably beyond that point. I found Gui, Margin... had a similar limitation but Gui, Add, Pic, y-300 didn't.

Presumably this is a limitation of the control so I would just use a Gui with something like
Code:
Gui, Add, Pic, y-200 h400, %imagefile%


and use options and styles like +AlwaysOntop, -SysMenu and so on to mimic a splashwindow.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 26th, 2011, 9:41 am 
Offline

Joined: March 23rd, 2006, 2:20 pm
Posts: 128
Quote:
so I would just use a Gui with something like


And so I'll do. Thank you!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, Google Feedfetcher, migz99 and 69 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group