@dusrel/image API
    Preparing search index...

    Function scalePixels

    @dusrel/image-watermark

    Image and text watermarks for the @dusrel/image family. The layout maths (position, margins, tiling, scale) is pure and shared: image marks composite at pixel level anywhere (workers, tests), text marks draw through the platform canvas with the same placements. Position, opacity, scale and tiling are all developer-controlled, per the family rule.

    • Bilinear resample (used to scale the mark; solid colours stay solid).

      Parameters

      • pixels: PixelData
      • width: number
      • height: number

      Returns PixelData