mergeBitmap

open fun mergeBitmap(@NonNull background: Bitmap, @NonNull foreground: Bitmap, left: Float, top: Float): Bitmap

Create a bitmap from a background and a foreground bitmap

Return

the merged bitmap

Parameters

background

The bitmap placed in the background

foreground

The bitmap placed in the foreground

left

position of the left side of the foreground bitmap

top

position of the top side of the foreground bitmap


open fun mergeBitmap(@NonNull background: Bitmap, @NonNull foreground: Bitmap): Bitmap

Deprecated

mergeBitmaps should be used instead, as it does not shift the input by 10px to the right and bottom.

Create a bitmap from a background and a foreground bitmap. The foreground bitmap will be shifted 10px to the right and 10px to the bottom relative to the background.

Return

the merged bitmap

Parameters

background

The bitmap placed in the background

foreground

The bitmap placed in the foreground