Hi,
I have two panels (Panel1 and Panel2) with their respective canvases. They lie on top of each other. I can set the background of Panel2 with a graphic and then draw on the Panel1 canvas and change it using Panel1.Invalidate and the image on Panel2 remains in view at all times.
However, if instead, I remove the Panel2 image and call a subroutine to draw a shape and then show the shape using DrawPath on Panel2 canvas, all I get is the drawn shape on a white background and Panel1 cannot be seen at all. I know the graphics on Panel1 and Panel2 are being drawn correctly because, if I reduce the size of Panel2, then I can see Panel1 behind it. I’ve tried setting the Panel1 to transparent but it didn’t work. Should I use an imageview instead of Panel2?
Can anyone suggest why this is happening and offer a solution? Thanks in advance
I have two panels (Panel1 and Panel2) with their respective canvases. They lie on top of each other. I can set the background of Panel2 with a graphic and then draw on the Panel1 canvas and change it using Panel1.Invalidate and the image on Panel2 remains in view at all times.
However, if instead, I remove the Panel2 image and call a subroutine to draw a shape and then show the shape using DrawPath on Panel2 canvas, all I get is the drawn shape on a white background and Panel1 cannot be seen at all. I know the graphics on Panel1 and Panel2 are being drawn correctly because, if I reduce the size of Panel2, then I can see Panel1 behind it. I’ve tried setting the Panel1 to transparent but it didn’t work. Should I use an imageview instead of Panel2?
Can anyone suggest why this is happening and offer a solution? Thanks in advance