DriftCapture · function
triangleResize
src into out by the antialiased bilinear: across first, then down, through an eight-bit
intermediate, which is the order both libraries' passes have. precision says whose rounding.
Explained in DriftCapture.
function triangleResize(src: Uint8Array, width: number, height: number, channels: number, out: Uint8Array, outWidth: number, outHeight: number, precision?: number): voidimport { triangleResize } from '@driftengine/capture';Parameters
| Parameter | Type | Description |
|---|---|---|
src | Uint8Array | |
width | number | |
height | number | |
channels | number | |
out | Uint8Array | |
outWidth | number | |
outHeight | number | |
precision? | number |