rhodonite
    Preparing search index...

    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

      Returns HTMLCanvasElement

      A new Canvas containing the combined RGBA image