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

  1. Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!daemon
  2. From: ygor@aplexus.jhuapl.edu (Daniel E. White  (F2C))
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: Re: Pixmap width and height?
  5. Message-ID: <1992Nov16.123416.18026@sm.sony.co.jp>
  6. Date: 16 Nov 92 12:34:16 GMT
  7. Sender: daemon@sm.sony.co.jp (The devil himself)
  8. Distribution: fj
  9. Organization: Johns Hopkins U. Applied Physics Lab
  10. Lines: 38
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: Tue, 10 Nov 1992 13:03:18 GMT
  14. Message-Id: <BxI49I.HqE@netnews.jhuapl.edu>
  15. Newsgroups: comp.windows.x.motif,comp.windows.x
  16. References: <1992Nov10.123700.2627@lsl.co.uk>
  17. Sender: xpert-request@expo.lcs.mit.edu
  18.  
  19. In article <1992Nov10.123700.2627@lsl.co.uk>, snail@lsl.co.uk writes:
  20. |> Hello everyone, the snail has a problem...
  21. |> 
  22. |> Does anyone know how to determine the width of a pixmap that you have. Say
  23. |> for example I had used XmGetPixmap(...) to fetch a pixmap from a UIL file
  24. |> (an exported icon, for example) I do not know the pixmap's width or height.
  25. |> I would like this info so that I can extract a bitmap from this pixmap.
  26. |> 
  27. |> Don't ask why, or suggest specifying the bitmaps a different way. We want
  28. |> bitmaps from Pixmaps (I can do that bit), but I need to know the width and
  29. |> height of the pixmap automatically (ie: through a function)rather than the user
  30. |> specifying the width and height.
  31. |> 
  32. |> Alternatively, if you know of a way of extracting a bitmap from a pixmap
  33. |> without previously knowing the width or height of the pixmap, let me know.
  34. |> 
  35. |> Thanks folks
  36. |> -- 
  37. |> snail@lsl.co.uk      
  38. |> 
  39. |> You Have To Remember, You Need To Beleive,
  40. |> The Time Has Past, Dust In The Leaves.
  41.  
  42. How about XGetGeometry() or XtGetValues()
  43.  
  44. -- 
  45. ------------------------------------------------------------------------
  46.                                                                Dan White
  47. ------------------------------------------------------------------------
  48. "Sometimes  I  think  the  surest  sign  that  intelligent  life exists
  49.  elsewhere  in the universe is that none of it has tried to contact us."
  50.                                                   Calvin (Bill Waterson)
  51.