Function combineImages

  • Combines multiple single-channel images into a single RGBA image. Each input image contributes to one color channel of the output.

    Parameters

    • data: {
          a_image?: HTMLCanvasElement;
          b_image?: HTMLCanvasElement;
          g_image?: HTMLCanvasElement;
          height: number;
          r_image?: HTMLCanvasElement;
          width: number;
      }

      Configuration object containing:

      • r_image: Optional canvas for red channel
      • g_image: Optional canvas for green channel
      • b_image: Optional canvas for blue channel
      • a_image: Optional canvas for alpha channel
      • width: Output image width
      • height: Output image height
      • Optionala_image?: HTMLCanvasElement
      • Optionalb_image?: HTMLCanvasElement
      • Optionalg_image?: HTMLCanvasElement
      • height: number
      • Optionalr_image?: HTMLCanvasElement
      • width: number

    Returns HTMLCanvasElement

    A new Canvas containing the combined RGBA image