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: 
EngoTom
Visitor

ComponentReference typo

Can Roku please update this doc so it's current.

Page 60

AddScaledGraphic() is not a valid method.

It looks to be AddGraphic() with the 2nd param.
0 Kudos
4 REPLIES 4
RokuKevin
Visitor

Re: ComponentReference typo

As documented in the v.2.6 SDK component reference, AddScaledGraphic() is valid only firmware v2.6 or later.... What do you find is incorrect about the doc?

--Kevin
0 Kudos
auzy
Binge Watcher

Re: ComponentReference typo

I agree with the OP:
addgraphic(string, string) works, while addscaledgraphic(string,string) throws a an error like this:

/tmp/plugin/FGAAAAJgXh4J/pkg:/source/regScreen.brs(320): runtime error f4: Member function not found in BrightScript Component or interface.

Documentation looks to be wrong in both 2.6 and 2.7 versions. The former method with 2 parameters is not listed in the doc, while the latter method does not work.
0 Kudos
auzy
Binge Watcher

Re: ComponentReference typo

btw, I'm running FW 2.7
0 Kudos
RokuMarkn
Visitor

Re: ComponentReference typo

EngoTom is correct, the documentation is in error. There is no AddScaledGraphic method, but AddGraphic can be used with either one or two parameters. If called with two parameters, it behaves as documented for AddScaledGraphic.

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