| 
 Q:
      How do I get my QuickDraw graphics onscreen once I've captured
      the display using CGDirectDisplay? A:
      CGDirectDisplayis great for capturing displays, changing
      resolutions and bit depths, and doing gamma fades.  In order
      to combine that with QuickDraw, you need to use a function
      fromQuickDraw.h,CreateNewPortForCGDisplayID. 
      
      Take the display ID you've used inCGDirectDisplayand pass it toCreateNewPortForCGDisplayIDto create a brand new QuickDrawCGrafPort.  Once you've usedSetPortto switch to this new
      port, you can draw using any QuickDraw graphics function but
      the most likely use will be to callCopyBitsto
      move graphics from an offscreenGWorldto the screen.  Don't
      forget to useGetPortBitMapForCopyBitsand definitely don't
      forget to callDisposePorton the new port once you are finished
      with it. 
 [Apr 11 2001] |