# PictureOptions Type

> PictureOptions type alias in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.

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

---

Public type for PictureOptions.

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

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

### Syntax

```typescript
type PictureOptions = Partial<Omit<PictureDrawing, 'kind' | 'position' | 'crop' | 'dataUrl'>> & ({
    dataUrl: string;
    base64?: never;
} | {
    base64: string;
    dataUrl?: never;
}) & {
    mimeType?: 'image/png' | 'image/jpeg';
    placement?: 'cell' | 'over-cells';
    cell?: string;
    position?: Partial<DrawingPosition>;
    crop?: Partial<PictureDrawing['crop']>;
};
```

### Examples

Use this public value with the application package shown below. File and font inputs are application-owned resources, not automatically downloaded product data.

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

const value: PictureOptions = { dataUrl: 'Invoice' };
console.log(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)

---

## Nearby

- **Previous:** [PictureDrawing.barcode Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/picturedrawing/barcode-property/llms-full.txt)
- **Next:** [PictureSource Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/picturesource/llms-full.txt)
