Docs @ Psychtoolbox Wiki : CopyWindow

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

Screen('CopyWindow')

PsychtoolboxScreen.{mex*,dll} subfunction

Usage
Screen('CopyWindow',srcWindowPtr,dstWindowPtr,[srcRect],[dstRect],[copyMode])

Copy images, quickly, between two windows (on- or off- screen). srcRect and
dstRect are set to the size of windows srcWindowPtr and dstWindowPtr by default.
[copyMode] is accepted as input but currently ignored. CopyWindow is mostly here
for compatibility to PTB-2. If you want to copy images really quickly, use the
'MakeTexture' and 'DrawTexture' commands. They also allow for rotated drawing
and advanced blending operations. The current CopyWindow implementation has a
couple of restrictions: One can't copy from an offscreen window into the -same-
offscreen window. One can't copy from an onscreen window into a -different-
onscreen window. Sizes of sourceRect and targetRect need to match for
Onscreen->Offscreen copy.


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0587 seconds