home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ornl!rsg1.er.usgs.gov!darwin.sura.net!wupost!cs.utexas.edu!sun-barr!sh.wide!fgw!fdm!ace!melby
- From: melby@dove.yk.Fujitsu.CO.JP (John B. Melby)
- Newsgroups: comp.windows.x
- Subject: Re: Resizing a pixmap
- Message-ID: <MELBY.92Nov16005529@dove.yk.Fujitsu.CO.JP>
- Date: 16 Nov 92 00:55:29 GMT
- References: <26475@optima.cs.arizona.edu>
- Sender: news@ace.yk.fujitsu.co.jp
- Followup-To: comp.windows.x
- Organization: Open Systems Dept. Div. 2 Sect. 1, FUJITSU LTD.
- Lines: 18
- In-reply-to: azhao@cs.arizona.edu's message of 15 Nov 92 13:52:27 JST
-
- >I'm looking for a quick way to resize a pixmap. Any suggestion will be
- >appreciated.
-
- Unfortunately the server does not handle this. In the general case,
- a pixmap can be resized as follows:
-
- (1) Download the pixmap to an XImage on the client side.
- (2) Create an additional XImage for the resulting pixmap.
- (3) Use your favorite algorithm to resize the pixmap. A trivial algorithm
- involves using a reverse matrix transformation on each coordinate pair
- in the _resultant_ image (this avoids holes in the image; cf.
- comp.graphics FAQ #6).
- (4) Upload the resultant XImage to a bitmap.
-
- -----
- John B. Melby
- Fujitsu Limited, Yokohama
- melby@yk.fujitsu.co.jp
-