CanvasとBitmapの関係は何ですか?CanvasとBitmapの関係は何ですか?
Bitmap drawingBitmap = Bitmap.createBitmap(bmp1.getWidth(),
bmp1.getHeight(), bmp1.getConfig());
canvas = new Canvas(drawingBitmap);
paint = new Paint();
canvas.drawBitmap(bmp1, 0, 0, paint);
paint.setXfermode(new PorterDuffXfermode(android.graphics.PorterDuff.Mode.SCREEN));
canvas.drawBitmap(bmp2, 0, 0, paint);
compositeImageView.setImageBitmap(drawingBitmap);
私はこのコードを理解していません。なぜdrawingBitmapはbmp1とbmp2の構成ですか?
ありがとうございます。しかし、私はペンキはペンではなく、ペンのようなキャンバスだと思います! – Judy
ペンの設定としてペンとペンキのキャンバスを考えると、そのアナロジーがうまくいくかもしれません。 – nil