以下代码用于添加滤镜,灯光调整和裁剪图像
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));
有没有类似的方法可以在捕获的图像上添加文本或应用画笔?
答案 0 :(得分:0)
这是一种在位图上添加路径和文字的简单方法,因为我不知道你刷的意思我可以帮助你。
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);
我希望这会对你有所帮助