Construct an Image based on an Imported Video

This returns an imported video as a continually looped image behavior.

ImageBvr createMovieImage() {
SoundBvr [] snd = { null } ;
ImageBvr [] unitIm = { null } ;
NumberBvr len = importMovie(buildURL(_movieBase,"movie.avi"),
unitIm, snd);

loop it, by using the mod function

unitIm[0] = (ImageBvr)unitIm[0].substituteTime(mod(localTime, len ));

scale into unit square

return unitIm[0].mapToUnitSquare();
}
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.