🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #4879

Re: AppleScanner to X bitmap

#4879
From: Earle R. Horton
Date: Wed, 20 Sep 1989 17:19
35 lines
1945 bytes
In article <1366@nyser> mcgowan@nisc.nyser.net (Craig McGowan) writes:
>
>Would like to move digitized images from our AppleScanner to
>monochrome Suns running X.  I have tried two approaches
>unsuccessfully:
>
>a) the Xbitmap program from the sumex archives,
>
>b) using the tiff2fbm foo.tiff | fbnorm | fbhalf -P | pbmtoxbm
>pipeline.
>
>"A" creates bitmaps which can't be read by X under certain
>circumstances and "B" sometimes munges the bitmap so that it looks
>funny.
>
>Has anyone out there got another idea?

     The Xbitmap program source is on sumex.  The problem with Xbitmap
is that it doesn't check the bitmap dimensions for validity.  It
merely takes the bitmap dimensions from the picture frame rectangle
of the input 'PICT' file.  If this rectangle has a width which does
not imply an even number of bytes, then X rejects the file because the
header specifies a nonsensical width.

     There are two ways around this problem.  One is to use only
'PICT' files where the picture frame has a sensible width, i.e.
divisible by 16.  The other is to get the source from sumex, and fix it.
All you have to do is to make Xbitmap write out files to specify a
bitmap width which is equal to the width of the internal offsreen
BitMap where the image is buffered in memory.

     I could fix this, but I am in thesis-writing mode right now and
can't afford the time.

Earle R. Horton
Technical Details
Message-ID: <15730@dartvax.Dartmouth.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!bu-cs!dartvax!eleazar.dartmouth.edu!earleh
References: <1366@nyser>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!bu-cs!dartvax!eleazar.dartmouth.edu!earleh
From: earleh@eleazar.dartmouth.edu (Earle R. Horton)
Newsgroups: comp.sys.mac,comp.windows.x
Subject: Re: AppleScanner to X bitmap
Message-ID: <15730@dartvax.Dartmouth.EDU>
Date: 20 Sep 89 17:19:43 GMT
References: <1366@nyser>
Sender: news@dartvax.Dartmouth.EDU
Reply-To: earleh@eleazar.dartmouth.edu (Earle R. Horton)
Followup-To: comp.sys.mac
Organization: Thayer School of Engineering
Lines: 35