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