> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reducto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Pictures

## `InlinePicture`

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

### InlinePicture properties

| Name | Type | Description |
| - | - | - |
| `inline` | `XElement` | read-only |
| `altTextDescription` | `string` | |
| `altTextTitle` | `string` | |
| `effectExtent` | `EffectExtent` | Extension: wp:effectExtent, the room Word keeps around the picture for its effects. |
| `height` | `number` | |
| `imageFormat` | `ImageFormat` | read-only |
| `line` | `ShapeLine` | read-only Extension: VBA's InlineShape.Line, the picture's outline (a:ln). |
| `lockAspectRatio` | `boolean` | The a:graphicFrameLocks noChangeAspect flag; resizing here does not enforce it. |
| `paragraph` | `Paragraph` | read-only |
| `pictureFormat` | `PictureFormat` | read-only Extension: VBA's InlineShape.PictureFormat, for the crop members. |
| `shadow` | `ShapeShadow` | read-only Extension: `Word.ShadowFormat` (VBA InlineShape's shadow) over the picture's outer shadow. |
| `width` | `number` | |

### `delete()`

```ts theme={null}
delete(): void
```

### `getBase64ImageSrc()`

```ts theme={null}
getBase64ImageSrc(): Promise<string>
```

### `insertInlinePictureFromBase64()`

```ts theme={null}
insertInlinePictureFromBase64(
  base64: string,
  insertLocation: "Replace" | "Before" | "After",
  options?: InsertInlinePictureOptions,
): InlinePicture
```

"Replace" swaps the image and keeps the frame, as Word's Change Picture does.

### `set()`

```ts theme={null}
set(properties: InlinePictureUpdateData, options?: UpdateOptions): void
```
