我已经编写了代码来在图像上绘制文本并将其发送到下一个活动。在同一活动中,它正在显示图像,但在下一个活动中,它不显示图像。
Canvas canvas = new Canvas(photo);
Paint paint = new Paint();
paint.setColor(Color.WHITE);
paint.setStrokeWidth(12); // Text Size
canvas.drawBitmap(photo, 0, 0, paint);
canvas.drawText(topaste, 15, 150, paint);
image.setImageBitmap(photo);
Intent i1=new Intent(FullScreen.this,EditImage.class);
i1.putExtra("photoo", photo);
startActivity(i1);
和接收活动是
image=(ImageView)findViewById(R.id.image);
Intent intent = getIntent();
photo = (Bitmap) intent.getParcelableExtra("photooo");
image.setImageBitmap(photo);