BCFSnapshot
- class Bcf.BCFSnapshot()
Constructors
Constructors
- BCFSnapshot.constructor(filename, data)
- Arguments
filename (
string()
) – Nonedata (
Uint8Array()
) – None
- 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)
- Arguments
filename (
string()
) – Noneimage (
HTMLImageElement()
) – None
Creates a BCF Snapshot from an HTMLImageElement.
- Return type
BCFSnapshot
static snapshotDataFromImage
- BCFSnapshot.snapshotDataFromImage(img)
- Arguments
img (
HTMLImageElement()
) – None
Gets image data as a Uint8Array from an HTMLImageElement.
- Return type
Uint8Array