[comp.graphics] Scaling bitmapped images - help wanted

kevin@jtsv16.UUCP (kevin) (05/09/88)

I am trying to implement an image cacher program for use with NeWS.
The images will be looked up in a database by a "C" program, and
shipped to the NeWS Server via a socket.  At the moment, I am using
the Sun rasterfile format to store the images, which are scanned at
150, 200, 300 and 400 dpi.
  

I believe the NeWS implementation of sockets is quite slow compared
to using 2 "C" programs.  Therefore I want to reduce the number of
bits coming in to NeWS, and since my screen resolution is only
something like 83 dpi (I am using a monochrome Sun 3/60), scaling
the image down before sending it down the socket seems the way to go.

I have worked out some algorithms for doing the scaling, but they
are either too slow, or not able to handle scaling by fractional
amounts.  I have not been able to find any literature on the
subject, either in the Sun manuals, or elsewhere.  I am sure there
must be something, because in PostScript you can just say
"x y scale". 

Does anyone have algorithms to do this, or can you point me in
the right direction for material on the subject?  Any help you
can give will be greatly appreciated.

Thanks,


-- 
Kevin Brighton
JTS Computer Systems Ltd. Toronto
(416) 665-8910
UUCP: {geac | utzoo | utgpu}!syntron!jtsv16!kevin |
      suncan!jtsv16!kevin