Path: utzoo!attcan!uunet!husc6!psuvax1!psuvm.bitnet!cunyvm!byuvax!loganj From: loganj@byuvax.bitnet Newsgroups: comp.sys.mac.programmer Subject: Color Programming Question (optimization) Message-ID: <248loganj@byuvax.bitnet> Date: 16 Sep 88 20:25:36 GMT Lines: 23 Movie BYU has been converted to the Macintosh, and now we are trying to optimize the Movie BYU code and ... We are drawing color pictures using "lineto", but when the color is changing at every pixel this is painfully slow. So, is there a faster way of drawing a color picture than using "lineto"? We thought of allocating a one (raster) line pixel map and setting the pixels directly without using quickdraw - then copybits the line to the screen, one line at a time for the whole screen. But that might not give the desired increased performance and might cause some compatibility problems in the future, right? If this is a practical solution, how are RGB values stored in memory within an offscreen pixel map, and can you provide an example for one pixel? Suggestions? Thanks and Regards, jim bitnet: loganj@byuvax internet: loganj@yvax.byu.edu #! rnews