XenoGuard Documentation

Take Camera Snapshot

Actions » Windows » Camera » Take Camera Snapshot 

The action Take Camera Snapshot allows you to use either the built-in or external camera to take a photo and store it as an image file on your device. It automatically locates the cameras connected to your device and displays a list of available cameras to be used.


[-] Hide
  1. Open the Windows node in the Workspace Explorer.
  2. In the Camera node, select the Take Camera Snapshot action.

Parameters:

The action has the following input parameters:


name Description
Camera
Specifies the camera to be used in taking a snapshot.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Type [Variable, Parameter, Enum]

Results:

The action returns the following results:


name
description
Image The snapshot taken from the devices' camera.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter]
Warning A specific error message appears if the camera does not provide an image.

Example 1 (Save an image from a snapshot):

This example creates two local variables Image Storage and Image Filename which both have Text as data type. A snapshot is then taken after the user confirms the action and stores the image in JPEG format to a created local storage path from the value of the variables. A notice is then displayed via Message Box that the image was successfully saved. 


See other related operations:

Take Screenshot