Post any questions, ideas, or topics related to Jython and Python scripting.
joleenf
Posts: 1123 Joined: Mon Jan 19, 2009 7:16 pm
Post
by joleenf » Fri Nov 22, 2013 3:22 pm
Is there a limit on screen size, or an aspect ratio that must be maintained?
Code: Select all
dir="{HOME}" hsize=1350 wsize=1500 panel = buildWindow(height=hsize,width=wsize) panel[0].captureImage(dir+'test1350x1500.png') writeImage(dir+"test1350x1500wi.png") hsize=900 wsize=1000 panel = buildWindow(height=hsize,width=wsize) panel[0].captureImage(dir+'test900x1000.png') writeImage(dir+"test900x1000wi.png") md=activeDisplay() md.setFullScreenWidth(1350) md.setFullScreenHeight(1500) ?md.getFullScreenWidth(), md.getFullScreenHeight() md.toggleFullScreen() md.captureImage(dir+"testSetSW_1350x1500.png")
When these tests are run, the only image which is the specified size when it saves is 900x1000.
960x1280 works, but 1440x1920 does not.
I am guessing this is all limited by my graphics card, but how do I know the size limit based on that?
Joleen
Rick
Posts: 404 Joined: Fri Jan 16, 2009 8:20 pm
Post
by Rick » Fri Nov 22, 2013 7:25 pm
Hi Joleen,
Are you running this script from they jython shell or in the background?
I did some quick checks and from the jython shell I can see unpredictable results using both Win7 and Mac OSX. I did get the expected results running the script from the background using both OS's. It does seem to be more of a ratio problem rather than overall size as I was able to make frames that were 2100 x 4000.
I wrote up an inquiry:
http://mcidas.ssec.wisc.edu/inquiry-v/?inquiry=1659 Rick
joleenf
Posts: 1123 Joined: Mon Jan 19, 2009 7:16 pm
Post
by joleenf » Fri Nov 22, 2013 7:29 pm
Hi Rick, I was running from the Jython Shell within the McIDAS-V session. Joleen