1

Android: Positioning 2 bitmaps on a Canvas

view story
linux-howto

http://stackoverflow.com – I take picture and obtain a Bitmap (bitmap), when I take the picture there is an image I would like to stay on the top (bitmao2). So to save the picture with the image on it I use a canvas. I would like to position bitmap2 on bitmap exactly how it is positioned when I take the picture. Here is what I do Bitmap bitmap = BitmapFactory.decodeByteArray(data,0,data.length); int width=bitmap.getWidth(); int height=bitmap.getHeight(); Bitmap bitmap2 = GameActivity.decodeSampledBitmapFromResource(gameactivity.getResources(), R.drawable.fire16,width1 ); Matrix matrix = new Matrix() (HowTos)