Banuba WebAR JavaScript API Reference
    Preparing search index...

    Class ImageFormat

    Index

    Constructors

    • Construct a new ImageFormat object with default values.

      Returns ImageFormat

    • Construct a new ImageFormat object with user's params.

      Parameters

      • width: number

        width of the image in pixels.

      • height: number

        height of the image in pixels.

      • orientation: CameraOrientation

        the image camera orientation in degrees as enum value.

      • requireMirroring: boolean

        specifies should the image be mirrored during rendering or not.

      • faceOrientation: number

        face orientation in degrees.

      • Optionalfov: number

        field of view in degrees.

      Returns ImageFormat

    Properties

    faceOrientation: number

    face orientation in degrees.

    fov: number

    field of view in degrees.

    height: number

    height of the image in pixels.

    orientation: CameraOrientation

    camera orientation in degrees as enum value.

    requireMirroring: boolean

    specifies should the image be mirrored during rendering or not.

    width: number

    width of the image in pixels.

    Methods

    • Returns number

      the image size in pixels, i.e. width * height.