Please help me figure what I'm doing wrong. I have to draw a circle behind an image (given as bitmap) with a different color based on the app logic, I using the following code.
Bitmap workingBitmap = Bitmap.createBitmap(bitmap);
Bitmap mutableBitmap = workingBitmap.copy(Bitmap.Config.ARGB_8888, true);
Canvas canvas = new Canvas(mutableBitmap);
Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setColor(Color.BLUE);
paint.setStyle(Paint.Style.FILL_AND_STROKE);
int horizontalPadding = (iconSize - drawingWidth) / 2;
int verticalPadding = (iconSize - drawingHeight) / 2;
canvas.drawCircle(120, 120, 100, paint);
return mutableBitmap;
what I'm getting is a circle above the image, which just fully covers the image, how to tell the code that an image has an upper layer.
Thanks