MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / merge

Method merge

src/com/cloudream/ishow/algorithm/FaceDetector.java:1038–1046  ·  view source on GitHub ↗
(final Bitmap layer1, final Bitmap layer2, final Bitmap layer3)

Source from the content-addressed store, hash-verified

1036
1037 // tried to use #LayerDrawable
1038 public static Bitmap merge(final Bitmap layer1, final Bitmap layer2, final Bitmap layer3)
1039 {
1040 Bitmap bitmap = layer1.copy(Bitmap.Config.ARGB_8888, true);
1041 Canvas canvas = new Canvas(bitmap);
1042 canvas.drawBitmap(layer2, 0, 0, null);
1043 canvas.drawBitmap(layer3, 0, 0, null);
1044
1045 return bitmap;
1046 }
1047
1048 public static Bitmap merge(final Bitmap layers[])
1049 {

Callers 1

onProgressChangedMethod · 0.95

Calls 1

drawBitmapMethod · 0.80

Tested by

no test coverage detected