interface export
CanvasImageBackgroundOptions
Placement/effect contract shared by still-image canvas backgrounds. `videoBg` uses these options after its selected video frame has been extracted to a raster image, keeping its public video selection API distinct while sharing the same image rendering semantics as `customBg`.
apexify.jsCURRENTnode22node24node26
Source: lib-next/types/canvas.ts (opens in a new tab)Signature
export interface CanvasImageBackgroundOptions {
/** Adopt the source image dimensions as the canvas dimensions. */
inherit?: boolean;
/** Resize policy when `inherit` is false. */
fit?: FitMode;
/** Placement used by `contain` / `cover` when `inherit` is false. */
align?: AlignMode;
/** Image filters applied to this background only. */
filters?: ImageFilter[];
/** Background-image opacity, multiplied by the canvas-level opacity. */
opacity?: number;
}Related APIs
No explicit related API metadata.