DCEFrame
interface DCEFrame
-
pixelFormat:
stringThe pixel format of the image data. The value is limited to “rgba” (default), “rbga”, “grba”, “gbra”, “brga”, “bgra”, “grey” or “grey32”.
-
stride:
numberThe stride is the width of a single row of pixels (a scan line), rounded up to a four-byte boundary.
-
data:
Uint8ArrayThe raw image data.
-
region:
RegionThe region based on which the original frame is cropped.
-
isCropped:
booleanWhether the image was cropped from the original frame.
-
sx:
numberThe horizontal coordinate of the upper left point of the
dataon the original frame. If the frame was not cropped, the coordinate is 0. -
sy:
numberThe vertical coordinate of the upper left point of the
dataon the original frame. If the frame was not cropped, the coordinate is 0. -
width:
numberThe width of the image data.
-
height:
numberThe height of the image data.
-
timeSpent:
numberThe time in miniseconds spent in acquiring the frame.
-
timeStamp:
numberThe timeStamp at which point the frame acquisition finished.
-
toCanvas:
()=>HTMLCanvasElementA
Functionwhich converts the image data to anHTMLCanvasElementobject.