Class ImageFrameExperimental Exposes User Data Wearable Only

Spectacles: ImageFrame contains the results of a still image request initiated from the CameraModule. Still images are high resolution images of the user's current camera stream.

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

Properties

Methods

Constructors

Properties

texture: Texture

Methods

  • Experimental

    Returns the name of this object's type.

    Returns string

  • Experimental

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

    Parameters

    • type: string

    Returns boolean

  • Experimental

    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