home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / fj / maillis / xwindow / 17515 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.3 KB

  1. Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!daemon
  2. From: melby@dove.yk.Fujitsu.co.jp (John B. Melby)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: Re: Resizing a pixmap
  5. Message-ID: <1992Nov16.223610.13192@sm.sony.co.jp>
  6. Date: 16 Nov 92 22:36:10 GMT
  7. Sender: daemon@sm.sony.co.jp (The devil himself)
  8. Distribution: fj
  9. Organization: Open Systems Dept. Div. 2 Sect. 1, FUJITSU LTD.
  10. Lines: 24
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: 16 Nov 92 00:55:29 GMT
  14. Message-Id: <MELBY.92Nov16005529@dove.yk.Fujitsu.CO.JP>
  15. Newsgroups: comp.windows.x
  16. References: <26475@optima.cs.arizona.edu>
  17. Sender: xpert-request@expo.lcs.mit.edu
  18.  
  19. >I'm looking for a quick way to resize a pixmap. Any suggestion will be
  20. >appreciated.
  21.  
  22. Unfortunately the server does not handle this.  In the general case,
  23. a pixmap can be resized as follows:
  24.  
  25. (1) Download the pixmap to an XImage on the client side.
  26. (2) Create an additional XImage for the resulting pixmap.
  27. (3) Use your favorite algorithm to resize the pixmap.  A trivial algorithm
  28.     involves using a reverse matrix transformation on each coordinate pair
  29.     in the _resultant_ image (this avoids holes in the image; cf.
  30.     comp.graphics FAQ #6).
  31. (4) Upload the resultant XImage to a bitmap.
  32.  
  33. -----
  34. John B. Melby
  35. Fujitsu Limited, Yokohama
  36. melby@yk.fujitsu.co.jp
  37.