Preparing search index...

    Class ImageRequestExposes User Data Wearable Only

    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.

    Used By
    Returned By
    let cameraModule = require('LensStudio:CameraModule');
    let imageRequest = cameraModule.createImageRequest();

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

    // E.g, 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)

    Index

    Properties

    crop: Rect

    The crop of the Image Request.

    resolution: vec2

    The resolution of the Image Request

    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