home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!daemon
- From: melby@dove.yk.Fujitsu.co.jp (John B. Melby)
- Newsgroups: fj.mail-lists.x-window
- Subject: Re: Resizing a pixmap
- Message-ID: <1992Nov16.223610.13192@sm.sony.co.jp>
- Date: 16 Nov 92 22:36:10 GMT
- Sender: daemon@sm.sony.co.jp (The devil himself)
- Distribution: fj
- Organization: Open Systems Dept. Div. 2 Sect. 1, FUJITSU LTD.
- Lines: 24
- Approved: michael@sm.sony.co.jp
-
- Date: 16 Nov 92 00:55:29 GMT
- Message-Id: <MELBY.92Nov16005529@dove.yk.Fujitsu.CO.JP>
- Newsgroups: comp.windows.x
- References: <26475@optima.cs.arizona.edu>
- Sender: xpert-request@expo.lcs.mit.edu
-
- >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
-