createTolliumImage | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...
    • Retrieve the source for an image

      Parameters

      • imgname: string

        The module:path/img name of the image

      • width: number

        The preferred width

      • height: number

        The preferred height

      • color: "c" | "b" | "w" = "b"

        The preferred color: black (for light backgrounds), color or white (for dark backgrounds)

      Returns Promise<{ height: number; src: string; width: number }>

      Source and actual width and height of the created image