Add Images
This exercise will demonstrate how to add pictures to the presentation.
The pictures are four images set on the background. The pictures
appear one at a time.
Add four images. The timing of each picture is set so that the
picture follows the previous picture by having its begin time equal
to the previous image's end time. All the pictures have a duration
of 10 seconds, except for the last which is indefinite.
<xmt-o ...>
<head> ... </head>
<body>
<par>
...
<img id="slide1" src="../multimedia/QueenMary.jpg" begin="0s" dur="10s"/>
<img id="slide2" src="../multimedia/Montpellier.jpg" begin="slide1.end" dur="10s"/>
<img id="slide3" src="../multimedia/AiguesMortes.jpg" begin="slide2.end" dur="10s"/>
<img id="slide4" src="../multimedia/HongKong.jpg" begin="slide3.end" dur="indefinite"/>
</par>
</body>
</xmt-o>
Each picture is placed in the center of the picture frame with
a transformation tag.
<xmt-o ...>
<head> ... </head>
<body>
<par>
...
<img ...>
<transformation translation="0 16"/>
</img>
<img ...>
<transformation translation="0 16"/>
</img>
<img ...>
<transformation translation="0 16"/>
</img>
<img ...>
<transformation translation="0 16"/>
</img>
</par>
</body>
</xmt-o>
The following is the complete XMT-O file used for this exercise:
IBMSlideShow2.xml
Here is a snap shot of the exercise:
In the next exercise, you will add
text descriptions for the pictures.
|