I'm trying to set a circle of pixels to transparent in a Bitmap. Currently I am iterating through the pixels in a circle and drawing them with Bitmap.setPixel(x, y, Color.TRANSPARENT), and I would like to see if it is quicker to make a Canvas from the Bitmap and use Canvas.drawCircle(x, y, Color.TRANSPARENT);. However, when drawing to the Canvas with a transparent Paint, it doesn't replace the colour but draws on top of it, so I see no change in the Bitmap.
Is there a way to make Canvas.drawXXX replace the colours below rather than paint on top of them? Cheers, Martin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---