I have two bitmaps in my project, what I need is that I need to combine these two bitmaps and combine these bitmaps with one image. I will show my code
public class FotosurpriseActivity extends Activity { Bitmap overlay; Paint pTouch; int X = -100; int Y = -100; Canvas c2; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); requestWindowFeature(Window.FEATURE_NO_TITLE); Bitmap mBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.android); Bitmap mBitmapover = BitmapFactory.decodeResource(getResources(), R.drawable.ss); overlay = BitmapFactory.decodeResource(getResources(),R.drawable.ss).copy(Config.ARGB_8888, true); c2 = new Canvas(overlay); pTouch = new Paint(Paint.ANTI_ALIAS_FLAG);
How can i do this?
source share