[comp.sys.mac.programmer] Two quickdraw questions

rasnow@bek-mc.caltech.edu (Brian Rasnow) (03/05/91)

Hello,
  
1. The Think C profiler indicates Line(1,1) is nearly twice as fast as
Line(0,0) or Line(1,0) or (0,1).  I am curious as to why, but what is the
fastest way to draw a single pixel, ie. Point(x,y)?

2.  After doing alot of drawing, I wish to put part of the screen on the 
clipboard. Is it true that I can turn a pixel map into a PICT format by 
CopyBits inside OpenPicture() and ClosePicture(). Since I have successfully 
implemented an offscreen GrafPort with its own PixMap for window updating, 
I can CopyBits to it -- simple, but all I get is an empty rectangle.  The 
size of the Picture after the CopyBits is also too small to hold the PixMap.
Any suggestions?  Thanks in advance.

-------------------
Brian Rasnow
Caltech 216-76, Pasadena CA 91125 (818) 356-6818
rasnow@bek-mc.cns.caltech.edu
rasnow@caltech.bitnet
Peacenet: rasnow
-------------------