home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22397 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.7 KB  |  44 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!hela.iti.org!usc!rpi!raffuj
  3. From: raffuj@rebecca.its.rpi.edu (Jose Raffucci)
  4. Subject: 8 bit graphics help needed...
  5. Message-ID: <x!s3=ff@rpi.edu>
  6. Nntp-Posting-Host: rebecca.its.rpi.edu
  7. Organization: Rensselaer Polytechnic Institute, Troy, NY
  8. References: <1993Jan28.164650.3857@dxcern.cern.ch> <1993Jan28.194422.11770@crd.ge.com>
  9. Date: Thu, 28 Jan 1993 23:21:59 GMT
  10. Lines: 32
  11.  
  12. I'm writing some routines to read in some pictures, and a couple of
  13. things occurred to me.
  14.  
  15. The images are 8bit grayscale, and I'm wondering what would be the
  16. fastest way to get them copied to an 8bit gworld.  I was previously
  17. using SetCPixel() since I didn't know what ressolution I was going
  18. to have to deal with, but since now the images will all be 8bit, I'd
  19. like to make it faster.  As of right now, I have all of the data stored
  20. in arrays by rows.  
  21.  
  22. What is the 'correct' way to convert this to a pixmap, forgetting 
  23. everything about the colortable and palette.  I started playing 
  24. with BlockMove() to copy each row directly to the pixMap->baseAddr
  25. locations, but I was bombing bigtime.  Maybe it was because you're 
  26. not supposed to do this, or whatever.  Yes, I locked my handles.   
  27.  
  28. Anyways, I can't seem to find any reference on how to do these types
  29. of things anywhere.  IM V & VI don't really explain the differences
  30. between the different resolution modes.  Well, I'm sure someone will
  31. prove me wrong, but I just started looking at this stuff today.
  32.  
  33. So, will the blockmove to the baseAddr work, or is there a better 
  34. way?
  35.  
  36. thanks, 
  37.     
  38. -hOz
  39.  
  40.  
  41. -- 
  42. Jose Raffucci  raffuj@rpi.edu  (518) 276-4810  "I don't like macs, I just    // 
  43. Lighting Research Center, RPI, Troy, NY 12810   have to program them"      \X/ 
  44.