Re: X window error [message #73777] |
Mon, 29 November 2010 05:59  |
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 #73851 is a reply to message #73780] |
Tue, 30 November 2010 16:59  |
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  |
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.
|
|
|