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

    Function imageDataToAlphaMaskBuffer

    • Extracts the alpha channel from raw ImageData into an AlphaMask. When possible use pixelDataToAlphaMask instead. Repeat calls to the same data will use less memory.

      Parameters

      • imageData: ImageData

      Returns Uint8Array