BCFSnapshot

class Communicator.BCFSnapshot()

Constructors


Constructors

BCFSnapshot.constructor(filename, data)
Arguments
  • filename (string()) –

  • data (Uint8Array()) –

Return type

BCFSnapshot()

Methods

getData

BCFSnapshot.getData()

Gets png data.

Return type

Uint8Array

getFilename

BCFSnapshot.getFilename()

Gets the filename.

Return type

string

getUrl

BCFSnapshot.getUrl()

Gets a url for images corresponding to viewpoints.

Return type

string

static createFromImage

BCFSnapshot.createFromImage(filename, image)

Creates a BCF Snapshot from an HTMLImageElement.

Arguments
  • filename (string()) –

  • image (HTMLImageElement()) –

Return type

BCFSnapshot()

static snapshotDataFromImage

BCFSnapshot.snapshotDataFromImage(img)

Gets image data as a Uint8Array from an HTMLImageElement.

Arguments
  • img (HTMLImageElement()) –

Return type

Uint8Array