Share via


KeyframedAnimationSet.Compress(CompressionFlags,Single,Frame) Method (Microsoft.DirectX.Direct3D)

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

Definition

Visual Basic 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
);
C++ public:
GraphicsStreamCompress(
    CompressionFlags flags,
    float lossiness,
    Framehierarchy
);
JScript 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.

OutOfMemoryExceptionLeave Site

Microsoft Direct3D could not allocate sufficient memory to complete the call.