[comp.windows.x] Translating macpaint icons to xbm graphically

rob@knopfler.leis.bellcore.com (Rob Herrera) (03/28/91)

Hello netters...

A simple question...

I'm trying to port macpaint files to xbm format. The macpaint
files usually contain many icons, and I have to cut and paste
these into separate files before I read'em into the Sun and 
apply macptoxbm.

Is there a tool on public domain able to read an xbm file,
and allow the user to cut a section of that file, and write
that section into another xbm file... 

Has anybody had to do this PAINFUL task, and has found a more 
intelligent way to do it...

Any info will be appreciated...

Rob Herrera

rob@knopfler.leis.bellcore.com

mouse@lightning.mcrcim.mcgill.EDU (der Mouse) (03/28/91)

> Is there a tool on public domain able to read an xbm file, and allow
> the user to cut a section of that file, and write that section into
> another xbm file...

I don't know offhand whether it's public domain or not (I suspect not),
but Jef Poskanzer's pbmplus package is free, and can do this...

xbmtopbm < xbm-file-in | pnmcut x y w h | pbmtoxbm > xbm-file-out

					der Mouse

			old: mcgill-vision!mouse
			new: mouse@larry.mcrcim.mcgill.edu