# PictureSource Interface

> PictureSource interface in the browser TypeScript API: Exactly one embedded picture source: bytes, data URL or base64 with an optional MIME type.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > PictureSource Interface
- **431 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/picturesource/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/picturesource/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/picturesource/llms-full.txt

---

Exactly one embedded picture source: bytes, data URL or base64 with an optional MIME type.

Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

Type-only declaration; it is not a JavaScript runtime constructor.

### Members

#### Properties

| Property | Description |
|---|---|
| [altText](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/picturesource/alttext-property/llms-full.txt) | The altText value of PictureSource. |
| [base64](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/picturesource/base64-property/llms-full.txt) | The base64 value of PictureSource. |
| [bytes](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/picturesource/bytes-property/llms-full.txt) | The bytes value of PictureSource. |
| [dataUrl](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/picturesource/dataurl-property/llms-full.txt) | The dataUrl value of PictureSource. |
| [mimeType](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/picturesource/mimetype-property/llms-full.txt) | The mimeType value of PictureSource. |

### Examples

Pass the PictureSource value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

```typescript
import type { PictureSource } from '@txtextcontrol/tx-sheet-control';

function inspectPictureSourceBase64(pictureSource: PictureSource) {
    const value = pictureSource['base64'];
    console.log('PictureSource.base64', value);
}
```

### See Also

- [TypeScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/llms-full.txt)
- [Pictures and Shapes](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/pictures-shapes/llms-full.txt)

---

## In This Section

- [PictureSource.altText Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/picturesource/alttext-property/llms-full.txt): PictureSource.altText property in the TX Sheet Control TypeScript API for the browser, with its type string | undefined and a TypeScript example.
- [PictureSource.base64 Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/picturesource/base64-property/llms-full.txt): PictureSource.base64 property in the TX Sheet Control TypeScript API for the browser, with its type string | undefined and a TypeScript example.
- [PictureSource.bytes Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/picturesource/bytes-property/llms-full.txt): PictureSource.bytes property in the browser TypeScript API, with its type Uint8Array<ArrayBufferLike> | undefined and a TypeScript example.
- [PictureSource.dataUrl Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/picturesource/dataurl-property/llms-full.txt): PictureSource.dataUrl property in the TX Sheet Control TypeScript API for the browser, with its type string | undefined and a TypeScript example.
- [PictureSource.mimeType Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/picturesource/mimetype-property/llms-full.txt): PictureSource.mimeType property in the TX Sheet Control TypeScript API for the browser, with its type string | undefined and a TypeScript example.

---

## Nearby

- **Previous:** [PictureOptions Type](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pictureoptions/llms-full.txt)
- **Next:** [PictureSource.altText Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/picturesource/alttext-property/llms-full.txt)
