Garbled pbm output of window #2145
Replies: 6 comments 7 replies
-
I loaded the PLOT3 package, compiled it -- Middle of the night here, so I'll leave it at that. |
Beta Was this translation helpful? Give feedback.
-
by the way, I think the Dodo networking code includes a Interpress to PDF converter (written in Java, charset 0 only). |
Beta Was this translation helpful? Give feedback.
-
To see if it's |
Beta Was this translation helpful? Give feedback.
-
I presume the results of the saved PBM file are still incorrect? |
Beta Was this translation helpful? Give feedback.
-
It looks like each erroneous piece is 16 pixels wide. It does work correctly on my latest release in Ubuntu 24.04 on WSL 2 on Windows 11. |
Beta Was this translation helpful? Give feedback.
-
Indices are from 0. The Medley 2.0 DOS version probably doesn't have DINFO loaded, so I'd suggest having a browser window open on online.interlisp.org so you can check the IRM pages easily - e.g, if you were to type |
Beta Was this translation helpful? Give feedback.
-
I am using Medley Interlisp 2.0 for DOS.
I have tried to write a hardcopy routine to save window contents as an ASCII portable bitmap.
However the output is garbled (see attached png). I think there might be an off-by-1 error somewhere. The function in question is SAVEPBM.
PLOT3.TXT was renamed from PLOT3.LSP, which was generated using MAKEFILE. To run you could say:
(LOAD 'PLOT3.LSP)
(DEMO2) ;; Will take a long time
MYPBM.TXT was renamed from MYPBM.PBM and is the output of SAVEPBM.
Also I would be grateful, if there was a way to programmatically save a bitmap to a more modern format, that can be converted to PNG. There is READBITMAP/PRINTBITMAP, but while that should be more efficient thar querying the bitmap puxel by pixel, the format isn't documented.
The mouse menu hardcopy doesn't work because of missing fonts and ist only does InterPress/Press formats anyway.
Thank you for following my confused rambles so far and for possibly replying!
PLOT3.TXT
MYPBM.TXT
Beta Was this translation helpful? Give feedback.
All reactions