home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / windows / x / 15915 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.4 KB  |  32 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!yktnews!victor
  3. From: victor@watson.ibm.com (Victor Miller)
  4. Subject: XPutPixel and and XGetPixel and image layout
  5. Sender: news@watson.ibm.com (NNTP News Poster)
  6. Message-ID: <VICTOR.92Aug31135453@terse4.watson.ibm.com>
  7. Date: Mon, 31 Aug 1992 17:54:53 GMT
  8. Reply-To: victor@watson.ibm.com
  9. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  10. Nntp-Posting-Host: terse4.watson.ibm.com
  11. Organization: IBM, T.J. Watson Research Center
  12. Lines: 18
  13.  
  14. I know that the standard "safe" way of writing and reading pixels in
  15. an image is to use XPutPixel and XGetPixel.  However, for speed one
  16. would like to read and write units (bytes, double bytes, quad bytes
  17. and whatever) directly for speed.  Is there a reliable way of
  18. determining what the layout of the image is?  I realize that,
  19. theoretically, it doesn't need to be layed out by scan lines, with
  20. possible padding, in which case all bets are off.  Is there a good way
  21. of determining whether or not this is the case (via some X calls), and
  22. if the image is layed out in a "standard" way to determine to
  23. parameters: a) how much space a pixel takes up, b) is there padding at
  24. the end of a scan line, and anything else that might be relevant.
  25.  
  26. --
  27.         Victor S. Miller
  28.         Bitnet: VICTOR at WATSON
  29.         Internet: victor@watson.ibm.com
  30.         IBM, TJ Watson Research Center
  31.         "Great artists steal; lesser artists borrow" Igor Stravinsky
  32.