fromImage

suspend fun fromImage(name: String): Canvas

Creates a Canvas that has the given image as a background; canvas dimensions match the image.

Return

new Canvas

Parameters

name

name of the image which is loaded from the resources