ImageSource Class

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

Methods

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

Properties

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

Defined in

Last Updated: 30 November, 2023