We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
看了公开方法,绘制完成后获取图片的时候 只有两种,包含涂鸦 和不包含涂鸦,是否还是第三种,只包含涂鸦
The text was updated successfully, but these errors were encountered:
可以参照源码获取到涂鸦的路径,然后绘制到自己的 Canvas 上,如下代码所示
val newBitmap = Bitmap.createBitmap(bitmap.width, bitmap.height, Bitmap.Config.ARGB_8888) val canvas = Canvas(newBitmap) val paint = Paint() paint.color = Color.BLACK canvas.drawRect(0f, 0f, bitmap.width.toFloat(), bitmap.height.toFloat(), paint) mDoodleView.allItem.forEach { it.draw(canvas) }
Sorry, something went wrong.
No branches or pull requests
看了公开方法,绘制完成后获取图片的时候 只有两种,包含涂鸦 和不包含涂鸦,是否还是第三种,只包含涂鸦
The text was updated successfully, but these errors were encountered: