Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!europa.eng.gtefsd.com!howland.reston.ans.net!news.sprintlink.net!EU.net!Germany.EU.net!news.dfn.de!news.belwue.de!news.informatik.uni-stuttgart.de!news
From: geltz@diana.informatik.uni-stuttgart.de (Markus Geltz)
Subject: Re: Q: Pictures in a view ??
In-Reply-To: dpa@aifbtornado's message of 24 Oct 1994 12:29:49 GMT
Message-ID: <GELTZ.94Oct25100615@diana.informatik.uni-stuttgart.de>
Lines: 49
Sender: news@informatik.uni-stuttgart.de
Organization: Informatik, University of Stuttgart, Germany
References: <38g9bt$2d5@nz12.rz.uni-karlsruhe.de>
Date: Tue, 25 Oct 1994 09:06:14 GMT

>>>>> "Dirk" == Dirk Pantring <dpa@aifbtornado> writes:

Dirk> Hello Smalltalker !

Dirk> [I did not find an answer in the FAQ, so I dare to ask.]

Dirk> I am searching a Class or Method, that receives the filename of
Dirk> a picture (e.g. *.jpeg, *.tif, *.gif, *.bmp etc) and returns a
Dirk> view containig that picture. I need this to add the view to a
Dirk> composite part.

Dirk> Even a Method that can read only one of the above fileformats
Dirk> would be wounderful to have.

Dirk> 	- As someone done this before? 

Sure, Frerk Meyer <frerk@telematik.informatik.uni-karlsruhe.de>

Dirk> 	- Are some (free ?) sources available? 

Yes, in Manchester at ftp://mushroom.cs.man.ac.uk/pub/goodies/misc/PNMImport/*

Dirk> 	- Is it difficult to write such a class ? (I have never dealt with 
Dirk> 		graphic formats before!) ?

I don't think so, I quote now from the comment of the goodie:

PNMImport adds methods for importing Portable aNyMaps (PNM) as of Jef
Poskanzer's pbmplus package. With the help of his package or the xv
program you can import ANY bitmap you like into your Smalltalk image,
store it as Smalltalk source code or in the binary BOSS Format.
Directly supported formats include PBM, PGM, PPM, XBM.  Some of the
formats pbmplus supports: GIF, TIFF, JPEG, SUN Raster, XBM, XPM, PCX,
etc...

Dirk> Can some kind soul give me a hint, please?

Dirk> Thanks in advance!
Dirk> dirk.

Dirk> PS: I'm using ObjectWorks\Smalltalk Rev. 4.1 on a Sun

Hope that helps

Bye
	Markus
--
Markus Geltz              email: geltz@informatik.uni-stuttgart.de

