Error getting tags :
error 404Error getting tags :
error 404 revVideoFrameImage | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
revVideoFrameImage
Basics
Expander triangle
Type
Command
Syntax
revVideoFrameImage frameWidth,frameHeight,dataVariable
Introduced
2.0
Environment
Desktop
Platform Support
MacOS,Mac OS X,Windows
Security
Disk,Privacy
Summary
Puts the current frame in the video grabber into a variable.
Examples

revVideoFrameImage 400,300,"myData"
revVideoFrameImage the width of image "Snapshot",\
the height of image "Snapshot","thisFrame"

Additional Comments
Expander triangle

Use the revVideoFrameImage command to capture a single frame of video.

Parameters:

The frameWidth is a positive integer.

The frameHeight is a positive integer.

The dataVariable is the name of an existing variable.

Comments:

The revVideoFrameImage command returns binary data in the same format as the imageData property of images, placing it in the dataVariable. To show the captured frame in an image, set the image's imageData property to the value placed in the dataVariable, as in the following example:

put empty into frameContainer

revVideoFrameImage 400,300,"frameContainer"

set the imageData of image "Picture" to frameContainer

If the frameWidth and frameHeight are not the same as the width and height of the video grabber window, the frame is scaled before being returned by the revVideoFrameImage function. The data returned by the command always uses the frameWidth and frameHeight, even if this means the video must be stretched or shrunk to fit. For example, if the video grabber window is 100 x 100 pixels, but you specify 200 as the frameWidth and 100 as the frameHeight, the returned data fits an image 200 x 100 pixels, with the horizontal dimension stretched to fit.

Important! The revVideoFrameImagecommand is part of the Video library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions section on the General screen of the Standalone Application Settings window, make sure that "Video Grabber" is selected from the list of script libraries.

User Comments
Expander triangle