NetLogo 7.0.0-beta2:

vid:capture-image

vid:capture-image width height

Captures an image from the currently selected active source.

If width and height are not specified, the image is captured at the current source resolution.

Example:

If you want to capture images at a different resolution, simply replace vid:capture-image with, e.g., (vid:capture-image 640 480).

Errors:

  • Message "vid: no selected source": There is no currently selected video source. Select a source with vid:movie-open, vid:movie-select, vid:camera-open, or vid:camera-select.
  • Message "vid: invalid dimensions": The selected dimensions are invalid (one of the dimensions is zero or negative).

Take me to the full Vid Extension Dictionary