@dusrel/image API
    Preparing search index...

    Function fillBackground

    @dusrel/image-transform

    Pixel-exact transforms for the @dusrel/image family: flips and quarter-turn rotations are pure permutations (no resampling, no quality loss), arbitrary-angle rotation uses the platform canvas, background fill composites over a colour, and the perspective helpers compute and apply true homographies on the CPU. Everything works on a structural PixelData ({ data, width, height }) so it runs in workers, tests and any JS runtime, and drops straight into @dusrel/image's imageDataPlugin.

    • Composites every pixel over a solid background colour (source-over). Fully opaque inputs pass through unchanged in colour; transparent pixels become the background.

      Parameters

      Returns PixelData