- Image generation - Create images programmatically
- Texture creation - Generate textures for use in shaders
- Intermediate buffers - Apply complex effects
- Server-side rendering - Generate graphics on Node.js
Basic Offscreen Rendering
UsemakeOffscreenSurface to create an offscreen surface and drawOffscreen to render React Native Skia components to it:
Using with Canvas Snapshots
You can also capture offscreen renders using the Canvas component’s snapshot methods:GPU Acceleration
On web and Node.js, offscreen surfaces can use GPU acceleration via the OffscreenCanvas API. See the Headless guide for details.Use Cases
Image Export
Generate and export images from your Skia drawings:Texture Generation
Create textures for use in shaders or other graphics:Performance Optimization
For complex graphics that don’t change frequently, render once offscreen and reuse:Related
- Headless Mode - Run Skia on Node.js
- Canvas Snapshots - Capture on-screen canvases
- Images - Work with image objects