comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Pixmap Problems
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: pixmap problem [message #36244 is a reply to message #6988] Thu, 28 August 2003 00:15 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Steve Ready wrote:

Dear Steve,

in addition to total what shows min and max.

Reimar

> Folks,
>
> I am hoping someone can shed some light on this problem.
>
> I am creating a large image in graphics memory with WINDOW,/PIXMAP and
> drawing to it using the PLOTS routine. I have discovered that if I specify
> a pixmap size larger than a particular value, dependent on the graphics
> card, I am able to allocate the graphics memory with no problem but am not
> able to draw to it. I have verified this on an WinXP and Win2K machine,
> both with 32mb graphics cards. Sample demo test code follows with typical
> output. This is slightly modified code from RSI website for testing
> available graphics memory size. Any clues?
>
> Thanks, Steve
>
> Steve Ready
> Sr. Member of the Research Staff
> Electronic Materials Lab
> Palo Alto Research Center
> 3333 Coyote Hill Rd.
> Palo Alto, CA 94034
> Voice: 650-812-4135
> FAX: 650-812-4105
> Email: ready@parc.com
> http://www.parc.com/ready
>
> ;*********************************************************** ***
> PRO test_pixmap_size
>
> cnt = 40L
> increment = 100
> off=3000
> i = 1
>
> ; Catch when the creation of a pixmap
> ; fails, and report the previous
> ; pixmap dimensions that succeeded.
>
> CATCH, errStat
> IF (errStat NE 0) THEN BEGIN
> x = ((i-1)*increment)+off
> y = x
> PRINT, 'Suggested maximum pixmap size: ', x, ' by ', y
> RETURN
> ENDIF
>
> ; Loop through potential pixmap dimensions.
> FOR i=1,cnt DO BEGIN
>
> x = (i*increment)+off
> y = (i*increment)+off
> print, 'Trying: ', x, ' by ', y
>
> WINDOW, /PIXMAP, /FREE, XSIZE=x, YSIZE=y
> plots,[.5,.5],[.5,.5],/normal
> print, total(tvrd())
> WDELETE, !D.WINDOW
>
> ENDFOR
> END
> ;*********************************************************** ***
>
> Result is:
>
> IDL> test_pixmap_size
> Trying: 3100 by 3100
> 255.000
> Trying: 3200 by 3200
> 255.000
> Trying: 3300 by 3300
> 255.000
> Trying: 3400 by 3400
> 255.000
> Trying: 3500 by 3500
> 0.000000
> Trying: 3600 by 3600
> 0.000000
> Trying: 3700 by 3700
> 0.000000
> Trying: 3800 by 3800
> 0.000000
> Trying: 3900 by 3900
> 0.000000
> Trying: 4000 by 4000
> 0.000000
> Trying: 4100 by 4100
> 0.000000
> Trying: 4200 by 4200
> 0.000000
> Trying: 4300 by 4300
> 0.000000
> Trying: 4400 by 4400
> 0.000000
> Trying: 4500 by 4500
> 0.000000
> Trying: 4600 by 4600
> 0.000000
> Trying: 4700 by 4700
> 0.000000
> Trying: 4800 by 4800
> 0.000000
> Trying: 4900 by 4900
> Suggested maximum pixmap size: 4800 by 4800

--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Solving elliptic equation in IDL
Next Topic: iTools questions

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 04:43:39 PDT 2025

Total time taken to generate the page: 1.20231 seconds