API Reference > imodeljs-common > Rendering > ImageSource ImageSource Class Image data encoded and compressed in either Jpeg or Png format. Methods Name Description constructor(data: Uint8Array | string, format: ImageSourceFormat): ImageSource Construct a new ImageSource, which takes ownership of the Uint8Array. Properties Name Type Description data Uint8Array | string The content of the image, compressed format ImageSourceFormat The compression type. Defined in core/common/src/Image.ts Line 126 Last Updated: 13 June, 2024