ImageSource Class

Image data encoded and compressed in either Jpeg or Png format.


Name Description
constructor(data: Uint8Array | string, format: ImageSourceFormat): ImageSource Construct a new ImageSource, which takes ownership of the Uint8Array.  


Name Type Description
data Uint8Array | string The content of the image, compressed  
format ImageSourceFormat The compression type.  

Defined in

Last Updated: 10 September, 2019