以下代码用于添加过滤器,调整和裁剪图像
Intent editIntent = new Intent(Intent.EXTRA_ASSIST_CONTEXT);
editIntent.setDataAndType(photoURI, "image/*");
editIntent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
startActivity(Intent.createChooser(editIntent, null));
有什么类似的方法可以从中添加文本或在捕获的图像上应用刷子?
这是一种在您的位图上添加路径和文本的简单方法,因为我不知道您的意思是什么,我无法帮助您。
mPaint = /* a paint with all the caracteristic like color, thinkness, etc that you want to apply to your text*/
mBitmap = /* in memory bitmap */
mCanvas = new Canvas(mBitmap);
mCanvas.drawText("your text", xStartingPosition, yStartingPosition, mPaint);
/*The bitmap is modified directly so you can access it normally*/
doStuffWithPaintedBitmap(mBitmap);
我希望这对您有帮助