Forum Discussion

EngoTom's avatar
EngoTom
Visitor
16 years ago

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.

4 Replies

  • 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
  • auzy's avatar
    auzy
    Binge Watcher
    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.
  • 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