Microsoft DirectX 9.0 SDK Update (October 2004)

KeyframedAnimationSet.Compress Method

Language:

Note: This documentation is preliminary and is subject to change.

Transforms animations in an animation set into a compressed format and returns the compressed data.

Definition

Visual Basic .NET Public Function Compress( _
    ByVal flags As CompressionFlags, _
    ByVal lossiness As Single, _
    ByVal hierarchy As Frame _
) As GraphicsStream
C# public GraphicsStream Compress(
    CompressionFlags flags,
    float lossiness,
    Frame hierarchy
);
Managed C++ public: GraphicsStream* Compress(
    CompressionFlags flags,
    float lossiness,
    Frame *hierarchy
);
JScript .NET public function Compress(
    flags : CompressionFlags,
    lossiness : float,
    hierarchy : Frame
) : GraphicsStream;

Parameters

flags Microsoft.DirectX.Direct3D.CompressionFlags. One of the CompressionFlags values that define the compression mode used for storing compressed animation set data.
lossiness System.Single. Desired compression loss ratio, in the range of 0 to 1.
hierarchy Microsoft.DirectX.Direct3D.Frame. A Frame transformation frame hierarchy. Can be null.

Return Value

Microsoft.DirectX.GraphicsStream . A CompressedAnimationSet object.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
OutOfMemoryException Leave Site Microsoft® Direct3D® could not allocate sufficient memory to complete the call.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center