DriftCapture · function
areaResize
src, width × height pixels of channels bytes, into out at outWidth × outHeight. Only
shrinking is defined, which is what a frame's preparation asks for.
Explained in DriftCapture.
function areaResize(src: Uint8Array, width: number, height: number, channels: number, out: Uint8Array, outWidth: number, outHeight: number): voidimport { areaResize } from '@driftengine/capture';Parameters
| Parameter | Type | Description |
|---|---|---|
src | Uint8Array | |
width | number | |
height | number | |
channels | number | |
out | Uint8Array | |
outWidth | number | |
outHeight | number |