Angus Leeming wrote:
> 
> On Friday 01 March 2002 1:51 am, Garst R. Reese wrote:
> > OK, after putting xformsGImage.[Ch] in the right place, and adding
> > #include<iostream>, changing the FL_FIXLEVEL < 6 to a 5, it compiled and
> > installed.
> > Creating a Postscript to ppm converter,(pstopnm $$i),
> > I get the same color only graphic and it looks like it still used the
> > .xpm converter. If I delete the PS to XPM converter I just get errors.
> > What did I miss?
> 
> That it converted to XPM. I told you that the XPM wasn't loading properly.

Angus:"Hovever, if you can define a converter to ppm, then it'll load
these 
beautfully. I haven't tried the others.

Much, much prettier scaling and rotation than I achieved."
------
What I tried to do was define a converter to ppm, but seem to have that
wrong.
Postscript PPM
pstoppm $$i

I tried as well:
PPM XPM
ppmtoxpm $$i > $$o

But there are other problems.
>From ecg-drd.ps:
%!PS-Adobe-3.0
%%Pages: (atend)
%%BoundingBox: 0 0 254 219
%%HiResBoundingBox: 0.000000 0.000000 253.344092 218.134375
%.........................................
%%Creator: AFPL Ghostscript 703 (pswrite)
------
Then I do pstoppm and from ecg-drd001.ppm I see:
------
P6
# Image generated by AFPL Ghostscript (device=ppmraw)
610 705
255
------
Then I do ppmtoxpm ecg-drd001.ppm > ecg-drd.xpm and I get:
----
/* XPM */
static char *ecg-drd001[] = {
/* width height ncolors chars_per_pixel */
"610 705 3 1",
----
The numbers 610 and 705 bear no consistent relationship that I can see
with 254 219, and I get a too big, but very nice, image in Lyx when I
use it to view ecg-drd.xpm
When I try to scale it to custom get Latex size (which it reports as
256,227) it is junk and out of proportion.
And, of course, when I do this I can no longer get a psview.

So I would say it did not actually work at all.

> Anyway, it actaully worked. Great. l'll change "6" to "5" and continue.
> 
> Angus
> 
> Incidently, if you put that conversion script in a file tempfile, edit it
[snip] 
> If you can do that, then your issues with a /tmp directory should be behind
> you.
> 
> Angus
>

Reply via email to