Function createTolliumImage
- createTolliumImage(
imgname: string,
width: number,
height: number,
color?: "c" | "b" | "w",
): Promise<{ height: number; src: string; width: number }>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
- imgname: string
Retrieve the source for an image