Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Level 8

BRIGHTSCRIPT: WARNING: roImageCanvas: This component is deprecated

Jump to solution

I'm getting this warning, which component should replace it.

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Level 10

Re: BRIGHTSCRIPT: WARNING: roImageCanvas: This component is deprecated

Jump to solution
9 Replies
Highlighted
Level 16

Re: BRIGHTSCRIPT: WARNING: roImageCanvas: This component is deprecated

Jump to solution

You have to use roScreen.  It's hardly a drop-in replacement, but it's better/faster.

0 Kudos
Highlighted
Level 8

Re: BRIGHTSCRIPT: WARNING: roImageCanvas: This component is deprecated

Jump to solution

Can i use it for custom keyboard, with search results shows within the same page? Because in roScreen documentation I've seen this note, Other screen components cannot be intermixed with roScreens as the roScreen display stack is maintained independently from the main screen component display stack. 

0 Kudos
Highlighted
Level 16

Re: BRIGHTSCRIPT: WARNING: roImageCanvas: This component is deprecated

Jump to solution

With roScreen you pretty much have to draw everything yourself.  You can create your own keyboard with search results, but it's a lot of hassle.  I've used the scene graph stuff as the UI before launching a game that uses roScreen.  It's not the prettiest option, but it beats having to create every component myself.

0 Kudos
Highlighted
Level 10

Re: BRIGHTSCRIPT: WARNING: roImageCanvas: This component is deprecated

Jump to solution

Is there a reason you are not using SceneGraph? 

Highlighted
Level 16

Re: BRIGHTSCRIPT: WARNING: roImageCanvas: This component is deprecated

Jump to solution

You can't create a game in Scene Graph (at least not easily).  That's just one of many reasons why I'm not using it.  :-)

0 Kudos
Highlighted
Level 10

Re: BRIGHTSCRIPT: WARNING: roImageCanvas: This component is deprecated

Jump to solution

okay, you did not mention you were making a game. You mentioned search results which you would typically find in a video channel not a game...

Depending what type of game you would like to make you can use Scenegraph

This is 100% scenegraph https://channelstore.roku.com/details/576304/monstrum-match

It would be more difficult to make a game in roImagecanvas even if it wasn't depreciated.  

Building a custom keyboard in roScreen is not that difficult.  I have built them for other games high score entry. Handling search results may be a little more involved.

0 Kudos
Highlighted
Level 10

Re: BRIGHTSCRIPT: WARNING: roImageCanvas: This component is deprecated

Jump to solution
Highlighted
Level 16

Re: BRIGHTSCRIPT: WARNING: roImageCanvas: This component is deprecated

Jump to solution

@necrotek wrote:

okay, you did not mention you were making a game. You mentioned search results which you would typically find in a video channel not a game...

Depending what type of game you would like to make you can use Scenegraph

This is 100% scenegraph https://channelstore.roku.com/details/576304/monstrum-match

I was answering for me, not the OP.  :-) 

That's cool, but that had to be a PITA to do in Scene graph!  I guess I just hate SG so much I'm not even willing to give it a chance for something like a game.

0 Kudos
Highlighted
Level 10

Re: BRIGHTSCRIPT: WARNING: roImageCanvas: This component is deprecated

Jump to solution

Hi Jim, Since this game was mostly menu based, it seemed a good fit for SceneGraph. SG is not too bad to work with once you get used to it. SG is kind of a souped up roImageCanvas. It is more natural for changing scene states, building lists for menus and animation components that can be leveraged. you can still use the draw2d components to manipulate an image and save it to device an feed it back to SG to display as a poster. I am sure it was quicker to put together in SG than it would have in roScreen. Any type of action oriented game I would of course do in roScreen.

0 Kudos