width and animations

About usage, announcement and development of skins for VLC
xanax

width and animations

Postby xanax » 09 Jan 2006 16:12

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

ipkiss
Big Cone-huna
Big Cone-huna
Posts: 695
Joined: 23 Nov 2003 01:49

Postby ipkiss » 09 Jan 2006 19:01

3124 / 22 = 142 :)

xanax

Postby xanax » 09 Jan 2006 19:30

Silly me. :oops:
I wonder why i haven't thought of that earlier.

Sorry for this useless forum then.


Return to “Skins”

Who is online

Users browsing this forum: No registered users and 63 guests