MergeDIBs  Method

Description         This method merges device independent bitmaps. You can specify multiple DIBs as parameter, but you must sign the number of DIBs with the Extension parameter. If you want to merge them side by side, you must set the Extension.cy parameter to 1 and set the Extension.cx parameter to the number of the DIBs. But if you merge them under each other, Extension.cx must be set to 1 and Extension.cy must be set to the number of DIBs. If you pass multiple 1 bit DIBs that have different palettes, this function will use the palette of the first DIB, and the other DIBs with different palettes will be converted.

Syntax                 lRet = [BiDib.]MergeDIBs  Dibs XSize YSize

Remarks             lRet                         LONGLONG Handle of the merged DIB, 0 on error.

                            Dibs                        LONGLONG Handle of the DIBs to merge.

                            XSize                      Long                Width of extension.

                            YSize                      Long                Height of extension.

See Also