"sonnykr" wrote:
One thing I noticed is that roImageCanvas will download the images automatically with a remote url. In this solution you provided, we need to manually download the images and create a bitmap out of it, and then get the width and height.
May be, this is the only solution to this?
If you need to check the dimensions of the image, you'll have to download it first. There's no way around that, unless you specify the exact dimensions in whatever feed/API that's providing the URLs. You could use the roTextureManager to download and create the bitmap without needing to use roUrlTransfer, if you didn't want to manage the download yourself, but I don't think that'll save you much in this instance. There is no built-in "maintain aspect ratio" function of the image canvas, though it would be a handy feature to have.
To answer your first question, there's also no (documented?) way to adjust the line height on the image canvas. I think your only option there would be to programmatically wrap the text yourself.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)