Limits on Screen Size

Post any questions, ideas, or topics related to Jython and Python scripting.
Post Reply
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Limits on Screen Size

Post by joleenf »

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
User avatar
Rick
Posts: 404
Joined: Fri Jan 16, 2009 8:20 pm

Re: Limits on Screen Size

Post by Rick »

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
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Re: Limits on Screen Size

Post by joleenf »

Hi Rick,

I was running from the Jython Shell within the McIDAS-V session.

Joleen
Post Reply