# ImageEditorImageAnnotation (@salmonui/editors/image-editor)

> The ImageEditorImageAnnotation interface of @salmonui/editors/image-editor: Image annotation.

Canonical: https://salmonui.dev/docs/reference/editors/image-editor/ImageEditorImageAnnotation

```ts
import type { ImageEditorImageAnnotation } from '@salmonui/editors/image-editor';
```

Entry index: https://salmonui.dev/docs/reference/editors/image-editor (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/editors/image-editor.md).

## Reference

Kind: interface

```ts
interface ImageEditorImageAnnotation extends AnnotationCommon {
    readonly kind: 'image';
    readonly x: number;
    readonly y: number;
    readonly width: number;
    readonly height: number;
    readonly src: string;
}
```

Image annotation.

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `kind` | `readonly kind: 'image';` |  |  |
| `x` | `readonly x: number;` |  |  |
| `y` | `readonly y: number;` |  |  |
| `width` | `readonly width: number;` |  |  |
| `height` | `readonly height: number;` |  |  |
| `src` | `readonly src: string;` |  | URL or data URL. |
| `id` | `id: string;` | inherited | Stable id; selection, history and callbacks use it. |
| `rotation` | `rotation?: number;` | optional, inherited | Clockwise degrees around the annotation's center. Default 0. |
| `opacity` | `opacity?: number;` | optional, inherited | 0 to 1. Default 1. |
