Page 1 of 1

width and animations

Posted: 09 Jan 2006 16:12
by xanax
Hi

How does VLC know the height of each frame in an animation image ?
For the width, I guess it gets this info directly from the file, but for the height?

Let's say, I have an animation, height="3124" width="204".
Since I have this code (which works) :

Code: Select all

<Bitmap id="lcd-intro" file="images/normal-mode/lcd-intro.png" alphacolor="#ff00ff" nbFrames="22" fps="2" /> <!-- Huge animation LCD --> <Button x="54" y="37" up="lcd-intro" action="none" tooltiptext="" />
What doesn't make VLC think each frame's height is 100px or even 143 or why not 704 for instance ?


Shouldn't we add width="204" height="142" to the ID definitions like it's the case for SubBitmaps ?



see you

Posted: 09 Jan 2006 19:01
by ipkiss
3124 / 22 = 142 :)

Posted: 09 Jan 2006 19:30
by xanax
Silly me. :oops:
I wonder why i haven't thought of that earlier.

Sorry for this useless forum then.