Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
oa24153
Binge Watcher

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
necrotek
Roku Guru

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

Jump to solution
9 REPLIES 9
renojim
Community Streaming Expert

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.

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
oa24153
Binge Watcher

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
renojim
Community Streaming Expert

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.

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
necrotek
Roku Guru

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

Jump to solution

Is there a reason you are not using SceneGraph? 

renojim
Community Streaming Expert

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.  🙂

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
necrotek
Roku Guru

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
necrotek
Roku Guru

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

Jump to solution

Check out this project to get started on a roScreen based keyboard 

https://community.roku.com/t5/Roku-Developer-Program/keyboard-code-example/m-p/428400

renojim
Community Streaming Expert

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.

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
necrotek
Roku Guru

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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.