SSISO Community

시소당

안드로이드에서 이미지 겹치기 팁

private Bitmap overlayMark(Bitmap bmp1, Bitmap bmp2)
{
   
Bitmap bmOverlay = Bitmap.createBitmap(bmp1.getWidth(), bmp1.getHeight(), bmp1.getConfig());
   
Canvas canvas = new Canvas(bmOverlay);
    canvas
.drawBitmap(bmp1, 0, 0, null);
    canvas
.drawBitmap(bmp2, distanceLeft, distanceTop, null);
   
return bmOverlay;
}

출처: http://javaexpert.tistory.com/225 [올해는 블록체인이다.]

1173 view

4.0 stars