Georeferencing API
    Preparing search index...
    • Sample byte RGBA using GDAL-compatible kernels and write four channels into a caller-owned output buffer.

      Source positions use pixel-corner coordinates: [0.5, 0.5] is the first centre. Invalid/outside samples leave output unchanged, so initialize it transparent. GDAL notices and tested tolerances are in the package documentation.

      Parameters

      • input: Pixels

        Source pixels.

      • x: number

        Source x in the actual decoded buffer's pixel space.

      • y: number

        Source y in that same space.

      • method: Resampler

        Interpolation kernel.

      • out: Uint8ClampedArray

        Destination RGBA buffer.

      • offset: number

        Byte offset of the destination pixel.

      • scale: XY = ...

        Output/source scale used for downsampling filter support; defaults to [1, 1].

      Returns void