KeyframedAnimationSet.Compress Method |
Language: |
Transforms animations in an animation set into a compressed format and returns the compressed data.
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;
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.
Microsoft.DirectX.GraphicsStream
A CompressedAnimationSet object.
Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value. OutOfMemoryException Microsoft Direct3D could not allocate sufficient memory to complete the call.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center