Go to Home Go to About
Go to Products Go to Contact
Go to News
Go to Services

vrocapture - Movie capture utility.

vrocapture(CaptureOperation, MovieName, WindowHandle, FrameRate, <SkipIndex>, <CaptureDriver>, <CaptureQuality>, <CaptureRegion>)

CaptureOperation

  • 'Open' - Open movie file for writing.
  • 'Snap' - Snap movie frame.
  • 'Close' - Close movie file.

MovieName - AVI movie name.

WindowHandle - MATLAB Figure Handle or Simulink Window Name. If empty, will capture the WorldUp ActiveX control.

FrameRate - Number of frames per second.

SkipIndex - Location of frame in movie. FrameRate divided by SkipIndex must be a whole number. Default: 1.

CaptureDriver

  • 'DIB' - Device Independent Bitmap
  • 'cvid' - Cinepak
  • 'msvc' - Microsoft Video compression

Default: 'DIB'.

CaptureQuality - Percentage picture quality. 100 is best quality. Default: 75.

CaptureRegion - Capture region within WindowHandle. Upper-Left is 0,0 in PIXELS. Format: [Left, Top, Width, Height]. Default: Entire window area.

Calling syntax:

  • vrocapture('Open', 'myfirst.avi', gcf, 10);
  • vrocapture('Open', 'myfirst.avi', gcf, 10, 2, 'cvid');
  • vrocapture('Open', 'myfirst.avi', gcf, 15, 1, 'DIB', 100, [10, 10, 100, 100]);
  • vrocapture('Snap');
  • vrocapture('Close');

Examples

MATLAB, Simulink, and Handle Graphics are trademarks of The MathWorks, Inc.