Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!SABER.COM!jimf From: jimf@SABER.COM Newsgroups: comp.windows.x Subject: Re: Bitmap scaling in X Message-ID: <9009121428.AA20076@armory> Date: 12 Sep 90 14:28:36 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 23 > 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? X does not provide any although several extensions to X do. Sample code to scale bitmap and color images exists within xloadimage in the file zoom.c. The algorithm used is simplistic but quite fast and effective. You can get xloadimage by anonymous ftp from expo.lcs.mit.edu in /contrib/xloadimage.1.06.tar.Z or via email by asking me. Xloadimage version 1.07 will be available soon and will support several more common image formats (eg MacPaint, xwd [even across visual types], and all the PBM formats) and some other image processing functions. It will be announced on this forum when it is available. Happy hacking, jim frost saber software jimf@saber.com