Products & Services Solutions Academia Support User Community Company

Learn more about Simulink 3D Animation   

capture (vr.canvas) - Capture virtual reality canvas to RGB image

Syntax

z = capture(vr.canvas object)

Description

z = capture(vr.canvas object) captures a virtual reality canvas object into a TrueColor RGB image. You can then display this image with the image function.

Example

Create a vr.canvas object to contain the virtual world, vrlights, capture that object to an RGB image, and display that image with the image function.

w = vrworld('vrlights');
open(w);
c = vr.canvas(w, gcf, [30 30 300 200]);
z=capture(c);
image(z);
  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS