Scratch for Java

Canvas::imageHeight()

Browser availability: desktop-only.

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

Syntax

Java

.imageHeight(path)

Parameters

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

Return

int

imageHeight()

Create Shareable URL

Select Sections