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

Home » Public Forums » archive » Re: X window error
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: X window error [message #73777] Mon, 29 November 2010 05:59 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article
<413fb72e-84f9-4851-9d5b-f00ac8f763f8@l8g2000yqh.googlegroups.com>,
Hawaiianite <jtmcahill@gmail.com> wrote:

> Hello,
>
> I keep getting an X windows badmatch error when trying to write a png
> file. It's worked perfectly fine on other computers but apparently
> something is different about the environment on my current computer.
>
> if keyword_set(png_file) then begin
> wset, 0 & rgbSnapshot = tvrd(TRUE=1)
> write_png, png_file, rgbSnapshot
> endif
>
> Does anyone have any thoughts?
>
> Thanks!

This works for me

WRITE_PNG, 'filename.png', TVRD(TRUE=1)

Is png_file a valid file name (ending in .png)?

Ken Bowman
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: NG Transparency Bug
Next Topic: X window error

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

Current Time: Wed Oct 08 19:22:04 PDT 2025

Total time taken to generate the page: 0.00408 seconds