> For the complete documentation index, see [llms.txt](https://daikirai.gitbook.io/scripting/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://daikirai.gitbook.io/scripting/documentation/image.md).

# image

## Image

`Image` represents a loaded image with dimensions and loading state.

### constructor

creates a new image from a url with optional caching.

```java
Image image = new Image(String url, boolean cache);
```

***

### getDimensions

returns the image dimensions as a float array.

```java
float[] dimensions = image.getDimensions();
```

***

### isLoaded

returns `true` if the image has finished loading.

```java
boolean loaded = image.isLoaded();
```
