I've been working on a project for a while, and I'm trying to use animation to fade between Posters. That part works.
I'm having problems properly sizing the Posters...
I test on HD, and on SD. The HD works, but the scaling produces poor image quality. In SD, the image is not scaled at all to the right size.
If I set the image to m.top.backgroundURI , scaling works perfectly.
<Poster id="P1" translation="[0,0]" loadDisplayMode="scaleToFit" />
di = CreateObject("roDeviceInfo")
DS = di.GetDisplaySize()
m.DisplaySize_h = DS["h"]
m.DisplaySize_w = DS["w"]
m.P1.height = m.DisplaySize_h
m.P1.width = m.DisplaySize_w
m.P1.uri = m.url
print m.P1.height ' 480
print m.P1.width ' 720
The image is smashed to the upper left...
If I set <Poster id="P1" translation="[0,0]" loadDisplayMode="scaleToFit" width="1280" height="480" />
and not use the sizing code I added, the image is centered...
What am i doing wrong? I have a small zip of the app available..