Pixel Data JS - v0.40.1
    Preparing search index...

    Function writePixelDataBuffer

    • Copies a pixel buffer into a specific region of a PixelData32 object.

      Parameters

      • target: PixelData32

        The target to write into.

      • data: Uint32Array

        The source pixel data (Uint32Array).

      • rect: Rect

        A rect defining the destination region.

      Returns void

    • Parameters

      • target: PixelData32

        The target to write into.

      • data: Uint32Array

        The source pixel data (Uint32Array).

      • x: number

        The starting horizontal coordinate in the target.

      • y: number

        The starting vertical coordinate in the target.

      • w: number

        The width of the region to write.

      • h: number

        The height of the region to write.

      Returns void