f



function graphics max window size

Hi,
Just so that others don't lose time (30 min?) like I did.
I was trying to make a window slightly bigger than my screen and this didn'=
t work out. Here is a short example to demonstrate what I mean:

ww768  =3D window(dimensions=3D[512,768],  /no_toolbar)
ww1024 =3D window(dimensions=3D[512,1024], /no_toolbar)
ww1280 =3D window(dimensions=3D[512,1280], /no_toolbar)
print, 'window y dimension (expected: 768) =3D ', strtrim(ww768.DIMENSIONS[=
1],2)
print, 'window y dimension (expected: 1024) =3D ', strtrim(ww1024.DIMENSION=
S[1],2)
print, 'window y dimension (expected: 1280) =3D ', strtrim(ww1280.DIMENSION=
S[1],2)
oMonitorInfo =3D Obj_New('IDLsysMonitorInfo')
rects =3D oMonitorInfo->GetRectangles()
pmi =3D oMonitorInfo->GetPrimaryMonitorIndex()
obj_destroy, oMonitorInfo
print, 'screen size ', rects[[2, 3], pmi]

And I get:

window y dimension (expected: 768) =3D 768.000
window y dimension (expected: 1024) =3D 1024.00
window y dimension (expected: 1280) =3D 1045.00
screen size         1920        1080

So apparently I can't initialize bigger windows. I had to scratch my head f=
or a while going through the function graphics documentation, until I found=
 this mentioned under the IDLgrWindow properties:
http://www.harrisgeospatial.com/docs/idlgrwindow.html#objects_gr_2157407275=
_1018355
Cite:
Note on Window Size Limits
The OpenGL libraries IDL uses impose limits on the maximum size of a drawab=
le area. The limits are device-dependent =E2=80=94 they depend both on your=
 graphics hardware and the setting of the RENDERER property. Currently, the=
 smallest maximum drawable area on any IDL platform is 1280 x 1024 pixels; =
the limit on your system may be larger.

Of course using the buffer keyword solves the problem, but I would like to =
see the window :-)

Cheers,
Helder
0
Helder
12/12/2016 12:17:02 PM
comp.lang.idl-pvwave 12260 articles. 2 followers. Post Follow

0 Replies
103 Views

Similar Articles

[PageSpeed] 39

Reply: