setImage method

setImage(fileName)

Changes the fill type to single image.

setImage(fileName: string)
ParameterTypeDescription
fileNamestringThe path to the image file.

setImage(stream)

Changes the fill type to single image.

setImage(stream: Buffer)
ParameterTypeDescription
streamBufferThe stream that contains the image bytes.

setImage(imageBytes) {#number[]}

Changes the fill type to single image.

setImage(imageBytes: number[])
ParameterTypeDescription
imageBytesnumber[]The image bytes array.

See Also