stason.org logo lotus


previous page: 5.2) Why is CopyBits still too slow? (Imaging with QuickDraw - Mac Programming)page up: Mac Programming FAQnext 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)

 Books
 TULARC
















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:


Share and Enjoy

Bookmark this story so others can enjoy it:
  • digg
  • Reddit
  • del.icio.us
  • Furl
  • Wists

Tags

os, Mac, macintosh, apple, programming, software







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