# paintScene Function

> paintScene function in the browser JavaScript API: Paints a PageScene onto a CanvasRenderingContext2D with optional images, with a JavaScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > JavaScript API > Browser Editor > paintScene Function
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/paintscene-function/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/paintscene-function/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/paintscene-function/llms-full.txt

---

## On This Page

- [Syntax](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/paintscene-function/#syntax)
- [Parameters](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/paintscene-function/#parameters)
- [Return Value](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/paintscene-function/#return-value)
- [Examples](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/paintscene-function/#examples)
- [See Also](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/paintscene-function/#see-also)

---

## Nearby

- **Previous:** [OperationCanceledError.code Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/operationcancelederror/code-property/llms.txt)
- **Next:** [parseAddress Function](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/parseaddress-function/llms.txt)
