Scratch for Java

Canvas::imageWidth()

Browser availability: desktop-only.

This API requires the desktop runtime. Browser declarations may report the limitation without performing the operation.

Syntax

Java

.imageWidth(path)

Parameters

Name Data Type Description
path String an image or a built-in sprite name

Return

int

imageWidth()

Create Shareable URL

Select Sections