home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19753 < prev    next >
Encoding:
Internet Message Format  |  1992-12-13  |  1.1 KB

  1. Path: sparky!uunet!spool.mu.edu!uwm.edu!wupost!gumby!destroyer!cs.ubc.ca!unixg.ubc.ca!unixg.ubc.ca!rudolph
  2. From: rudolph@unixg.ubc.ca (Christopher E Rudolph)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: PixMaps
  5. Date: 14 Dec 92 00:03:57 GMT
  6. Organization: The University of British Columbia
  7. Lines: 22
  8. Message-ID: <rudolph.724291437@unixg.ubc.ca>
  9. NNTP-Posting-Host: unixg.ubc.ca
  10. Summary: How do I declare pixel data from scratch?
  11. Keywords: pixmap question
  12.  
  13.  
  14. Hello,
  15.  
  16. I would like to declare pixel data for a PixMap data structure from
  17. within my program and not have to call the data from, say a cicn in a
  18. resource.
  19.  
  20.  
  21. Example:  
  22.  
  23. Say I had a ball that I would like to decribe in terms of actual pixels on
  24. the screen.  How would I go about declaring an array of values for this
  25. ball, which I would then like to assign to the baseAddr field of the
  26. PixMap data structure.
  27.  
  28. My biggest problem is I don't know how to go about defining the pixel image.
  29. If anyone could help me out with this I would really appreciate it.
  30.  
  31. Thanks in advance,
  32.  
  33. Chris Rudolph (ComputerScience, UBC) <rudolph@unixg.ubc.ca>
  34. ------------------------------------------------------------
  35.