在保存为tiff格式之前如何压缩位图? [英] How to compress a bitmap before saving it into tiff format?
本文介绍了在保存为tiff格式之前如何压缩位图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何压缩位图,然后保存为tiff格式?
How to compress a bitmap before saving it into tiff format?
任何人都可以和我分享一些代码,以便在保存为图像格式之前先压缩位图的内容.我有以下代码:
Can any one please share some code with me that will compress the contents of a bitmap before saving into image format.I have the following code:
Dim image As BitmapSource = decoder.Frames(i)
Dim thebitmap As Bitmap = BitmapFromSource(image)
Dim eps As Imaging.EncoderParameters = New Imaging.EncoderParameters(1)
thebitmap.RotateFlip(RotateFlipType.Rotate180FlipNone)
thebitmap.Save("frame" & Str(i) & ".jpg")
我需要压缩"thebitma"的内容将其保存为jpg格式之前.
I need to compress the contents of "thebitma" before saving it into jpg format.
推荐答案
您确实需要与某人交谈. ;讲师或主管.您不知所措.
You really need to talk to someone. An instructor or a supervisor. You're in way over your head.
这篇关于在保存为tiff格式之前如何压缩位图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文