Skip to content Skip to sidebar Skip to footer

Drawing Translucent Shapes Without Overlapping

I am drawing several circles with transparency. The number of circles and their positions are not fixed. Currently I am setting the transparent color in a Paint object and drawing

Solution 1:

Create a new bitmap with ARGB888, and draw on it's canvas all your shapes with no transparency. Then draw the new bitmap into the main canvas using a Paint on which you called setAlpha earlier


Post a Comment for "Drawing Translucent Shapes Without Overlapping"