我只是想在图像上的特定 (x,y) 位置上设置 uo 标记![在此处输入图像描述][1]
我曾尝试使用位图和画布功能,但直到现在我都没有工作
Bitmap viewBitmap = Bitmap.createBitmap(image.getWidth(),image.getHeight(),Bitmap.Config.ALPHA_8);//i is imageview which u want to convert in bitmap
Canvas canvas = new Canvas(viewBitmap);
Paint paint = new Paint(2222);
viewBitmap.extractAlpha();
viewBitmap.eraseColor(getWallpaperDesiredMinimumHeight());
viewBitmap = viewBitmap.extractAlpha(paint, null);
canvas.drawBitmap(viewBitmap, 10, 10,paint);
canvas.drawCircle(20, 20, 5, paint);
canvas.clipRect(10,10, 10, 10);
image.draw(canvas);