Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!dog.ee.lbl.gov!epb2.lbl.gov!envbvs From: envbvs@epb2.lbl.gov (Brian V. Smith) Newsgroups: comp.windows.x Subject: Re: Bitmap scaling in X Keywords: X blit scale stretch bitmap pixmap Message-ID: <1990Sep11.104510@epb2.lbl.gov> Date: 11 Sep 90 17:45:10 GMT References: <20200@well.sf.ca.us> <1990Sep11.100202@wsl.dec.com> Sender: usenet@dog.ee.lbl.gov Reply-To: envbvs@epb2.lbl.gov (Brian V. Smith) Distribution: comp Organization: lbl Lines: 30 X-Local-Date: Tue, 11 Sep 90 10:49:47 PDT In article <1990Sep11.100202@wsl.dec.com>, klee@wsl.dec.com (Ken Lee) writes: |> In article <20200@well.sf.ca.us>, brent@well.sf.ca.us (Brent Southard) writes: |> |> Are there any functions in the X toolkit to provide for the scaling of |> |> bitmaps (pixmaps, actually, I suppose)? If not, what are the methods most |> |> people are employing to quickly provide this capability over a range of |> |> hardware? |> |> Most graphics extensions to X, such as Display PostScript and PEX, have |> facilities for image scaling. If you want to do this by hand, most |> books on computer graphics discuss something like "geometric |> transformations of images". The latest Foley & VanDam book has |> pseudocode for some of the simpler algorithms. |> Or check out the pbmplus programs, written by Jef Poskanser, which will scale, rotate, clip etc. "portable bitmaps". There are also many support programs to convert to/from various formats and pbm. The pbm package is available from expo.lcs.mit.edu (18.30.0.212) in the /contrib directory (pbmplus.tar.Z). -- Brian V. Smith (bvsmith@lbl.gov) Lawrence Berkeley Laboratory I don't speak for LBL; they don't pay me enough for that.