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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: X window error [message #73777] Mon, 29 November 2010 05:59 Go to next 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
Re: X window error [message #73780 is a reply to message #73777] Sun, 28 November 2010 17:18 Go to previous messageGo to next message
Andrew Cool is currently offline  Andrew Cool
Messages: 219
Registered: January 1996
Senior Member
On Nov 28, 3:08 pm, Hawaiianite <jtmcah...@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!

Try TVREAD and TVWRITE from Coyote.

Andrew
Re: X window error [message #73851 is a reply to message #73780] Tue, 30 November 2010 16:59 Go to previous message
jtmcahill is currently offline  jtmcahill
Messages: 26
Registered: October 2007
Junior Member
On Nov 28, 8:18 pm, Andrew Cool <andrew.c...@dsto.defence.gov.au>
wrote:
> On Nov 28, 3:08 pm, Hawaiianite <jtmcah...@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!
>
> Try TVREAD and TVWRITE from Coyote.
>
> Andrew

Andrew,

I appear to get the same error when using TVREAD. And I get it over
an over again like it is doing a repetitive process.

% X windows protocol error: BadMatch (invalid parameter attributes).
% X windows protocol error: BadMatch (invalid parameter attributes).
% X windows protocol error: BadMatch (invalid parameter attributes).
% X windows protocol error: BadMatch (invalid parameter attributes).
Re: X window error [message #73852 is a reply to message #73777] Tue, 30 November 2010 16:38 Go to previous message
jtmcahill is currently offline  jtmcahill
Messages: 26
Registered: October 2007
Junior Member
On Nov 29, 9:59 am, "Kenneth P. Bowman" <k-bow...@null.edu> wrote:
> In article
> < 413fb72e-84f9-4851-9d5b-f00ac8f76...@l8g2000yqh.googlegroups .com >,
>
>  Hawaiianite <jtmcah...@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

Yes, it is a valid file name ending in .png that I set at the command
to begin.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: NG Transparency Bug
Next Topic: X window error

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

Current Time: Wed Oct 08 15:27:34 PDT 2025

Total time taken to generate the page: 0.00748 seconds