[comp.sys.sgi] Bitmap Scaling Algs

jg36@prism.gatech.EDU (GRIFFIN,JEFFREY A) (07/20/90)

Does anyone have an algorithm for scaling bitmaps?  I am looking for something
that will scale to a given size, X by Y.  Does anyone have an algorithm that
would scale a bitmap by superimposing a fixed size grid over the bitmap and 
determine the values for each box of the grid.  The subs can be in Fortran or
C.  Any suggestions or better ideas would be much appreciated.  Thanks for the
help!!

blbates@AERO4.LARC.NASA.GOV ("Brent L. Bates AAD/TAB MS361 x42854") (07/20/90)

   I am not sure what you are trying to do, but, maybe this will help.
When I display bitmap images, I either plot each pixel as a point, flat
shaded polygon, or a Gouraud shaded polygon.  This is slower than using
pixel routines, but it is very easy to scale the image up or down using
ortho or techniques.
--

	Brent L. Bates
	NASA-Langley Research Center
	M.S. 361
	Hampton, Virginia  23665-5225
	(804) 864-2854
	E-mail: blbates@aero4.larc.nasa.gov or blbates@aero2.larc.nasa.gov