MATLAB Programming/Psychtoolbox/Screen Commands/SetDrawingRegion

From Wikibooks, open books for an open world
< MATLAB Programming‎ | Psychtoolbox‎ | Screen Commands
Jump to navigation Jump to search



Make subsequent drawing to the window visible only if it is within the specified region. This does not apply to PutImage or CopyWindow operations. Call with rect equal to screenRect to reestablish the entire screen. Drawing outside the region is suppressed, but still takes the normal amount of time to complete.

  • If shapeFlag == 0 [default], shapeSpec is a rect, region is rectangular.
  • If shapeFlag == 1, shapeSpec is a rect, region is oval.
  • If shapeFlag == 2, shapeSpec is a point list, region is polygonal.