Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

MATLAB Programming/Psychtoolbox/Screen Commands/DrawLine

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Usage: Screen('DrawLine',windowPtr,[color],fromH,fromV,toH,toV,[penWidth],[penHeight],[penMode]) Draw a line. color is the clut index (scalar or [r g b] triplet) that you want to poke into each pixel. Default is black. Default penWidth and penHeight is 1. penMode specifies the drawing mode: The Win32 GDI interface does not have support for Copyin the Or and xOr modes. So the pen modes here represent the line styles of the pen: 'patCopy' (solid pen, default), 'patOr' (dashed), 'patXor' (dashdot), 'patBic' (dotted), 'notPatCopy' (invisible), 'notPatOr' (dashed), 'notPatXor' (dashdotdot), 'notPatBic' (inside frame).