home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19897 < prev    next >
Encoding:
Text File  |  1992-12-16  |  1.5 KB  |  39 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!spool.mu.edu!think.com!rpi!ghost.dsi.unimi.it!univ-lyon1.fr!chx400!aragorn.unibe.ch!news
  3. From: kohler@ubevx1.unibe.ch (Martin Kohler)
  4. Subject: HELP: Speedup SetCPixel
  5. Message-ID: <1992Dec16.081024.2403@aragorn.unibe.ch>
  6. Sender: news@aragorn.unibe.ch
  7. Reply-To: KOHLER@IOC.unibe.ch
  8. Organization: University of Bern, Switzerland
  9. Date: Wed, 16 Dec 1992 08:10:24 GMT
  10. Lines: 27
  11.  
  12. Hi there!
  13.  
  14. I'm writing a program that should be able to read a file of characters
  15. and display for each of them a pixel in the corresponding color (8 bit).
  16.  
  17. The problem is: IT'S VERY SLOW ....
  18.  
  19. The details: I get the size of the file and create a buffer to hold the
  20.              contents. The file is read with fread in one step. Then, I
  21.              create an off-screen world and set the GrafPort. The pixels
  22.              are drawn each after the other with SetCPixel.
  23.  
  24. The question: How to do it faster ???
  25.  
  26.  
  27. Thanks for ANY help!
  28.  
  29. Martin
  30.  
  31. -----------------------------------------------------------------------------
  32.  Martin Kohler                      >>> Internet    : kohler@ubeclu.unibe.ch
  33.  Institut fuer organische Chemie    >>> SPAN/HEPnet : 20579::UBEVX1::KOHLER
  34.  Universitaet Bern                  >>> DECnet      : 49854::SYSTEM
  35.  Freiestrasse 3                     >>> FidoNet     : 2:301/580.33
  36.                                     >>> Phone       : +41 31 654363   
  37.  CH-3012 Bern (Switzerland)         >>> Fax         : +41 31 654499
  38. ----------------------------------------------------------------------------
  39.