Scratch for Java

Drawing::image()

Draws an image at its original size. A built-in costume name also works.

Examples

View on GitHub

Syntax

Java

.image(path, x, y)
.image(path, x, y, width, height)

Parameters

Name Data Type Description
path String image file or built-in costume
x double centre x
y double centre y
width double drawn width in pixels
height double drawn height in pixels

Return

void

image()

Create Shareable URL

Select Sections