Drawable drbl=null;
Bitmap topImage = null ;
Bitmap b=Bitmap.createBitmap(ref_capturedBitmap.getWidth(), ref_capturedBitmap.getHeight(), ref_capturedBitmap.getConfig());
Canvas comboImage = new Canvas(b);
int width = ref_capturedBitmap.getWidth();
int height = ref_capturedBitmap.getHeight();
Log.v("CameraCaptureActivity","Width : "+width+" Height : "+height );
if (frameStatus == 0)
drbl = getResources().getDrawable(R.drawable.maske1r);
else if (frameStatus == 1)
drbl = getResources().getDrawable(R.drawable.maske2r);
else if (frameStatus == 2)
drbl = getResources().getDrawable(R.drawable.maske3r);
drbl.setBounds(0, 0, height, width);
Bitmap tpImg=((BitmapDrawable)drbl).getBitmap();
topImage=Bitmap.createScaledBitmap(tpImg, width, height, true);
comboImage.drawBitmap(ref_capturedBitmap,0f,0f,null);
comboImage.drawBitmap(topImage, 0f, 0f, null);
return b;