API Reference > imodeljs-common > Rendering > ImageSource 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 core/common/src/Image.ts Line 130 Last Updated: 12 June, 2024