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 GraphicsStreamC# public GraphicsStream Compress(
CompressionFlags flags,
float lossiness,
Frame hierarchy
);C++ public:
GraphicsStream^ Compress(
CompressionFlags flags,
float lossiness,
Frame^ hierarchy
);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
The method call is invalid. For example, a method's parameter might contain an invalid value.
Microsoft Direct3D could not allocate sufficient memory to complete the call.