home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / x / 19174 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  1.2 KB

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