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

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!agate!stanford.edu!apple!goofy!mumbo.apple.com!gallant.apple.com!seuss.apple.com!user
  2. From: absurd@apple.apple.com (Tim Dierks, software saboteur)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: PixMaps
  5. Message-ID: <absurd-131292203217@seuss.apple.com>
  6. Date: 14 Dec 92 04:59:35 GMT
  7. References: <rudolph.724291437@unixg.ubc.ca>
  8. Sender: news@gallant.apple.com
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: MacDTS Marauders
  11. Lines: 38
  12.  
  13. In article <rudolph.724291437@unixg.ubc.ca>, rudolph@unixg.ubc.ca
  14. (Christopher E Rudolph) wrote:
  15. > Hello,
  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. > Example:  
  20. > Say I had a ball that I would like to decribe in terms of actual pixels on
  21. > the screen.  How would I go about declaring an array of values for this
  22. > ball, which I would then like to assign to the baseAddr field of the
  23. > PixMap data structure.
  24. > My biggest problem is I don't know how to go about defining the pixel image.
  25. > If anyone could help me out with this I would really appreciate it.
  26.  
  27. Thanks for reposting your question: your first version was kind of
  28. incomprehensible.  [Note to all: if you're thinking of posting a question
  29. to c.s.m.p., the #1 thing you can do to improve your chances of getting
  30. an answer is write a clear, comprehensible question.  People are less
  31. likely to answer if they're unsure of what you're asking.]
  32.  
  33. Now back to our program....
  34.  
  35. Read the "Graphics Overview" chapter of Inside Mac VI and the Tech Note
  36. previously numbered #120 "Principia Off-Screen Graphics Environments",
  37. by QuickDraw God (TM), Forrest Tanaka.  (No, I don't know what it's
  38. called in the Brave New Tech Note World.)
  39.  
  40. [This is where I tried to insert a description of how everthing works,
  41. but was unable to get it sounding right, so I deleted it.  Read the
  42. documentation and the tech note; all will become clear.]
  43.  
  44. Tim Dierks
  45. MacDTS pinball addict
  46.