Spectacles: ImageRequest contains the parameterization for a still image request, which is a request for a high resolution image of the user's current camera stream. This object is created from the CameraModule. Currently there are no parameters that can be set for an ImageRequest.

let cameraModule = require("LensStudio:CameraModule");
let imageRequest = CameraModule.createImageRequest();

try {
let imageFrame = await cameraModule.requestImage(imageRequest);

// Use the texture in some visual
script.image.mainPass.baseTex = imageFrame.texture;
let timestamp = imageFrame.timestampMillis; // scene-relative time
} catch (error) {
print('Still image request failed: ${error}');
}

Hierarchy (View Summary, Expand)

Constructors

Methods

  • Returns true if the object matches or derives from the passed in type.

    Parameters

    • type: string

    Returns boolean

  • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

    Parameters

    Returns boolean

MMNEPVFCICPMFPCPTTAAATR