PNMImport.st ------------ Import: XBM, PBM, PGM, PPM, ST code, BOSS Export: XBM, PBM, ST code, BOSS Methods ------- Image class>import readPNMFile: PBM/PGM/PPM readFile: readBOSS: Image >export writeFile: writeBOSS: Image >utilities open inspect Depth1Image class>import readPNMFile: (PBM) readXBMFile: Depth1Image >export writePBMFile: writeXBMFile: Depth8Image class>import readPNMFile: (PGM) Depth24Image class>import readPNMFile: (PPM) Comment ------- The method readPNMFile recognizes if the bitmap is of type PBM, PGM or PNM. It calls the appropiate methods of an DepthNImage subclass. Then the bitmap is rendered to the current palette. If you don't like it to be rendered then you have to call the method in the subclass yourself. Afterwards you are able to save the bitmap as Smalltalk Code or BOSS file. Don't ask me for GIF, TIFF or PCX Import because they are all compressed binary formats which take an enourmous amount of time to decompress in pure Smalltalk and public decompression procedures are available in C. BTW: I don't use Smalltalk anymore in my new position, but reports are that PMNImport even works on VisualWorks. ftp://ftp.st.cs.uiuc.edu/pub/MANCHESTER/misc/PNMImport/ ftp://mushroom.cs.man.ac.uk/ "Frerk Meyer" 1.12.1994