Not sure if this belongs here, or in other, or in view/layout problems...
I want to display a shape on the screen that looks like a window: everything outside the shape is dimmed (for instance black with an alpha value of 128) and inside the shape the alpha value is 0. This shape will be drawn on top of a bitmap, in a canvas (using surfaceholder). I need to be able to scale and pan the shape as well.
What would be the most efficient way to do this?