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: 
slingxshot
Streaming Star

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 2
belltown
Roku Guru

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]" />
0 Kudos
bleighty
Visitor

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