API Reference > imodeljs-frontend > Views > Sprite > constructor constructor Method construct a Sprite from an ImageSource or a Url Sprite(src: ImageSource | string): Sprite Parameter Type Description src ImageSource | string The ImageSource holding an image to create the texture for this Sprite, or the url of the image Returns - Sprite Defined in core/frontend/src/Sprites.ts Line 42 Last Updated: 13 June, 2024