Forum Discussion

skitdev's avatar
skitdev
Visitor
11 years ago

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!

20 Replies