I would like to use ImageView views to display several layers.
- Setting the ImageView.Color to a 'transparent' color Colors.ARGB(0,255,255,255)
- Drawing onto the ImageViews and playing with the ImageView.Visible parameter allows to display or hide the layers.
All this works fine.
Then I would 'erase' a part of the ImageView, setting this part to transparent. How can this be done.
For the moment I can set the whole ImageView to transparent but not just a part of it, and all the other drawings must be drawn again.
Drawing a rectangle with the transparent color has no effect because it draws transparent onto the existing image, so no effect. I would set the bitmap's pixels to transparent.
I am porting my Sudoku program from B4PPC to B4Android and want to display the small numbers on one layer and cell background colors on another layer. To remove the small numbers in one cell I would set only this surface to transparent, similar with a cell background color. For the moment I must set the whole surface to transparent and draw all the other numbers again.
Attached a small test program, I want to set only the red square to transparent.
Best regards.
- Setting the ImageView.Color to a 'transparent' color Colors.ARGB(0,255,255,255)
- Drawing onto the ImageViews and playing with the ImageView.Visible parameter allows to display or hide the layers.
All this works fine.
Then I would 'erase' a part of the ImageView, setting this part to transparent. How can this be done.
For the moment I can set the whole ImageView to transparent but not just a part of it, and all the other drawings must be drawn again.
Drawing a rectangle with the transparent color has no effect because it draws transparent onto the existing image, so no effect. I would set the bitmap's pixels to transparent.
I am porting my Sudoku program from B4PPC to B4Android and want to display the small numbers on one layer and cell background colors on another layer. To remove the small numbers in one cell I would set only this surface to transparent, similar with a cell background color. For the moment I must set the whole surface to transparent and draw all the other numbers again.
Attached a small test program, I want to set only the red square to transparent.
Best regards.