skitdev
11 years agoVisitor
Toggle Element Visibility with roImageCanvas
Hey everyone,
I'm trying to play video (using roVideoPlayer) and display an overlay for it (using roImageCanvas). I can draw shapes and images to the canvas while video plays, but my attempts to hide the elements have been largely unsuccessful. I've had limited success with calling canvas.setLayer( layerNum, invalid), but canvas.clear() and canvas.clearLayer(layerNum) haven't worked. Am I doing something wrong?
I can provide some code samples if needed
Thanks for the help!
I'm trying to play video (using roVideoPlayer) and display an overlay for it (using roImageCanvas). I can draw shapes and images to the canvas while video plays, but my attempts to hide the elements have been largely unsuccessful. I've had limited success with calling canvas.setLayer( layerNum, invalid), but canvas.clear() and canvas.clearLayer(layerNum) haven't worked. Am I doing something wrong?
I can provide some code samples if needed
Thanks for the help!