IBM MPEG-4 XMT-O Tutorial IBM MPEG-4 Technologies
IBM MPEG-4 Technologies
Overview
Presentation
Images
Text
Definitions
Regions
Animation
Transition
Credits
Transition credits
Video

Use Regions

This exercise will demonstrate how to arrange the layout of the presentation using regions.

Regions are used to share the position of object. It removes the redundancy of defining the position of each picture and title. The <region> element is defined in the <topLayout> element. The translation attribute defines the location for the region. The region contains an id in order to refer to the region in the document body. The size attribute specifies a clipping rectangle for the region.

<xmt-o ...>
  <head>
    <layout ...>
      <topLayout ...>
        <region id="Slide" translation="0 16"   size="300 200" z-index="1"/>
        <region id="Title" translation="0 -126" size="208 18"  z-index="2"/>
      </topLayout>
    </layout>
    ...
  </head>
  <body> ... </body>
</xmt-o>

To reuse the region specify the region's id on the media object. This allows removing the <transformation> element child of the media object.

<xmt-o ...>
  <head> ... </head>
  <body>
    <par>
      ...
      <img region="Slide" .../>
      <img region="Slide" .../>
      <img region="Slide" .../>
      <img region="Slide" .../>
      <string region="Title" ...>
        <use .../>
        <use .../>
      </string>
      <string region="Title" ...>
        <use .../>
        <use .../>
      </string>
      <string region="Title" ...>
        <use .../>
        <use .../>
      </string>
      <string region="Title" ...>
        <use .../>
        <use .../>
      </string>
    </par>
  </body>
</xmt-o>

The following is the complete XMT-O file used for this exercise:

IBMSlideShow5.xml

Here is a snap shot of the exercise:


In the next exercise, you will animate the arrival and departure of the text.

 

  IBM Home | Research Home | MPEG-4 Technologies | alphaWorks | © Copyright IBM Corp. 1998, 2006. All Rights Reserved.