Roku Developer Program

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

Using Vector2DFieldInterpolator and scale question

Hello I would to enlarge an image by pulling from the bottom 2 corners of it... down... basically I am trying to make a small image scale to full screen tv size 1920x1080 ...

Right now the image is top center of the screen, right now what I am doing is modifying translation field then scaling it. Is there a better way to do this?

Does anyway have any idea how to achieve this?

Thank You
0 Kudos
2 Replies
belltown
Level 7

Re: Using Vector2DFieldInterpolator and scale question

Just put it where you want it, and make it as big as you want, e.g:

<Poster
 id="bigPoster"
 uri="http://blah.blah.com/blah"
 width="1920"
 height="1080"
 loadSync="true"
 translation="[0,0]" />
https://github.com/belltown/
0 Kudos
bleighty
Level 7

Re: Using Vector2DFieldInterpolator and scale question

instead of manually adjusting the translation yourself, just set scaleRotateCenter to whatever point you want it to scale from.
0 Kudos