Reputation: 26498
How can I make certain pixels of an DrawableBitmap transparent?
Upvotes: 5
Views: 13344
Reputation:
.setAlpha(alpha)
alpha
can range from 0 (fully transparent), and 255 (fully opaque).
Upvotes: 0
Reputation: 1093
Maybe this helps:
Bitmap buffer = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_4444);
buffer.eraseColor(Color.TRANSPARENT);
Upvotes: 5
Reputation: 1369
You can try to change the underlying Bitmap (if it is mutable) pixel with the setPixel method.
Upvotes: 0