lotus



previous page: 5.2) Why is CopyBits still too slow? (Imaging with QuickDraw - Mac Programming)
  
page up: Mac Programming FAQ
  
next page: 5.4) Why do pictures I record suddenly draw as empty space or not draw at all? (Imaging with QuickDraw - Mac Programming)

5.3) What is the fastest way to set one pixel? (Imaging with QuickDraw - Mac Programming)




Description

This article is from the Mac Programming FAQ, by Jon Watte h+@austin.metrowerks.com with numerous contributions by others.

5.3) What is the fastest way to set one pixel? (Imaging with QuickDraw - Mac Programming)

On 68k Macs, NOT SetCPixel()! Assuming you have the correct ForeColor()
set, you can set the pen size to (1,0) and call Line (0,1)

I have heard PaintRect is good for this but requires slightly more code.
Using PaintRect eliminates a trap call.

 

Continue to:















TOP
previous page: 5.2) Why is CopyBits still too slow? (Imaging with QuickDraw - Mac Programming)
  
page up: Mac Programming FAQ
  
next page: 5.4) Why do pictures I record suddenly draw as empty space or not draw at all? (Imaging with QuickDraw - Mac Programming)