DAStatics Functions Relevant to DAMontage Objects

ImageMontage Creates a DAMontage object consisting of a single DAImage object at the given z-value. Same as ImageMontageAnim except that Z-value is a nonanimated number (a double).
ImageMontageAnim Creates a DAMontage object consisting of a single DAImage object at the given z-value.
UnionMontage Creates a DAMontage object by combining the given arguments.
UnionMontageArray Creates a DAMontage object by combining the montages in the array.

ImageMontage

DAStatics Class

Creates a DAMontage object consisting of a single DAImage object at the given z-value. Same as ImageMontageAnim except that Z-value is a nonanimated number (a double).

Syntax

lib.ImageMontage( image, Z-value )

Parameters

image
DAImage object.
Z-value
A double value specifying the z-value. This is a nonanimated number.

Return Value

Returns the DAMontage object.

ImageMontageAnim

DAStatics Class

Creates a DAMontage object consisting of a single DAImage object at the given z-value.

Syntax

lib.ImageMontageAnim( image, Z-value )

Parameters

image
DAImage object.
Z-value
DANumber object, specifying the z-value. This must be an animated number.

Return Value

Returns the DAMontage object.

Remarks

The following example is taken from the AnimatedGlow.html sample found in the Samples/Multimedia/Danim/Jscript/Exercises subdirectory.

  arc1Mntg = m.ImageMontageAnim(
    halfArc1.Transform(xf.ParallelTransform2()), depth);

UnionMontage

DAStatics Class

Creates a DAMontage object by combining the given arguments.

Syntax

lib.UnionMontage( m1, m2 )

Parameters

m1 and m2
DAMontage objects to be combined.

Return Value

Returns the DAMontage object.

Remarks

The following example is taken from the AnimatedGlow.html sample found in the Samples/Multimedia/Danim/Jscript/Exercises subdirectory.

textMntg = m.ImageMontage(m.Overlay(textImg, slideImg), 0);
arc1Mntg = m.ImageMontageAnim(
    halfArc1.Transform(xf.ParallelTransform2()), depth);
arc2Mntg = m.ImageMontageAnim(
    halfArc2.Transform(xf.ParallelTransform2()), m.Neg(depth));
finalImg = m.UnionMontage(m.UnionMontage(textMntg, arc1Mntg), arc2Mntg).Render();

UnionMontageArray

DAStatics Class

Creates a DAMontage object by combining the montages in the array.

Note You can only use this function with Microsoft® DirectAnimation® version 6.x or later.

Syntax

lib.UnionMontageArray( montageArray )

Parameters

montageArray
Array of DAMontage objects.

Return Value

Returns the DAMontage object that is the union of the montages in the array.


Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.