Loading Bitmaps / Images from host to Medley? #2329
|
I was just about to write a PBM (P1 or P4 loader) today and then recalled that there was mention of some existing image loaders (or had been) to go from host to Medley. I thought I'd ask here so hopefully people can see answers should they search for bitmaps images etc. I suppose I'll ask a few questions since I have them.
|
Replies: 8 comments 15 replies
|
@phantomics wrote some tools for importing and exporting PBM images into and out of Medley but as far as I know the code is not public. There is a useful discussion here on the file format used by the Interlisp functions |
You're mostly correct:
The 4 by 4 pattern is represented as a small integer. Bitmaps are stored internally as a sequence of 16-bit words, with a header that Image Streams are regular (output) streams which also have associated with them a You might look at the READAIS and AISBLT packages in lispusers. Array of Intensity Samples was a format |
|
Thanks for the pointers, I'll take a peek! It's not a show stopper though. ;) |
|
@nbriggs I yanked mine after seeing a bug or three to quickly fix in the P1. Anyway this is the P1 loader (I misstated earlier as a P4). EDIT (for a few typos and mislabels)
|
|
No, I sent mine to only you in e-mail to avoid posting a spoiler if you saw it through the webpage. |
|
If you want -- it's in your e-mail, I can post it here too. It works for files that don't have extra whitespace (but it's OK with/without comments). Should be an easy fix for the whitespace. |



I fixed it a little -