本文整理汇总了C#中Compression.GzipCompress方法的典型用法代码示例。如果您正苦于以下问题:C# Compression.GzipCompress方法的具体用法?C# Compression.GzipCompress怎么用?C# Compression.GzipCompress使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Compression
的用法示例。
在下文中一共展示了Compression.GzipCompress方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Kinect_NewRecordedAudio
protected override void Kinect_NewRecordedAudio(byte[] audio)
{
base.Kinect_NewRecordedAudio(audio);
if (NewCompressedAudioStream != null)
{
Compression<byte[]> comp = new Compression<byte[]>();
byte[] compressedValue = comp.GzipCompress(audio);
NewCompressedAudioStream(compressedValue, audio);
}
}
示例2: Kinect_NewSkeletonFrame
protected override void Kinect_NewSkeletonFrame(Skel skeletonImage)
{
base.Kinect_NewSkeletonFrame(skeletonImage);
if (NewCompressedSkeletonFrame != null)
{
Compression<SkeletonFrame> comp = new Compression<SkeletonFrame>();
byte[] compressedVal = comp.GzipCompress(skeletonImage.Skeleton);
NewCompressedSkeletonFrame(compressedVal, skeletonImage.Skeleton);
}
}
示例3: Kinect_NewDepthFrame
protected override void Kinect_NewDepthFrame(Depth depthImage)
{
base.Kinect_NewDepthFrame(depthImage);
if (NewCompressedKinectDepthFrame != null)
{
Compression<DepthImageFrame> comp = new Compression<DepthImageFrame>();
byte[] compressedVal = comp.GzipCompress(depthImage.DepthFrame);
NewCompressedKinectDepthFrame(compressedVal, depthImage.DepthFrame);
}
}
示例4: Kinect_NewVideoFrame
protected override void Kinect_NewVideoFrame(VideoImage videoImage)
{
base.Kinect_NewVideoFrame(videoImage);
if (NewCompressedKinectVideoFrame != null)
{
Compression<ImageFrame> comp = new Compression<ImageFrame>();
byte[] compressedVal = comp.GzipCompress(videoImage.ImageFrame);
NewCompressedKinectVideoFrame(compressedVal, videoImage.ImageFrame);
}
}