2016-12-08 5 views

答えて

1

まずAndroidのメーカーを使用していますが、それにのEditTextを入れて書くことができ、書き込み後には、最初に作成した画像のビットマップを追加することができます今すぐ

Bitmap bitmap = Bitmap.createBitmap(mEditText.getDrawingCache());

の下のようなビットマップにそれを変換しますこの

Bitmap combined = combineImages(bgBitmap,bitmap);

public Bitmap combineImages(Bitmap background, Bitmap foreground) { 

    int width = 0, height = 0; 
    Bitmap cs; 

    width = getWindowManager().getDefaultDisplay().getWidth(); 
    height = getWindowManager().getDefaultDisplay().getHeight(); 

    cs = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 
    Canvas comboImage = new Canvas(cs); 
    background = Bitmap.createScaledBitmap(background, width, height, true); 
    comboImage.drawBitmap(background, 0, 0, null); 
    comboImage.drawBitmap(foreground, matrix, null); 

    return cs; 
} 

のようなあなたの元のイメージに私はそれが役に立てば幸い。

+0

リンクを参照できますか? –

関連する問題