home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / windows / x / 18852 < prev    next >
Encoding:
Text File  |  1992-11-08  |  710 b   |  24 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!mcsun!sunic!ugle.unit.no!alf.uib.no!alf.uib.no!singg
  3. From: singg@alf.uib.no (Kurt George Gjerde)
  4. Subject: Saving pixmap
  5. Message-ID: <1992Nov7.142312.23199@alf.uib.no>
  6. Sender: usenet@alf.uib.no (Bergen University Newsaccount)
  7. Organization: University of Bergen, Norway
  8. Date: Sat, 7 Nov 92 14:23:12 GMT
  9. Lines: 13
  10.  
  11. I use the following code to save a pixmap to file:
  12.  
  13.  
  14.              if (!XWriteBitmapFile(dpy,name,pixmap,width,
  15.                                   height,-1,-1) != BitmapSuccess)
  16.                 reportError(drawing_a,"Error saving drawing to '%s'.",tok[1],
  17.                             NULL,NULL,NULL);
  18.  
  19.  
  20. Are there any faster ways of doing this??
  21.  
  22. Kurt.
  23.  
  24.