原創|其它|編輯:郝浩|2012-12-04 11:07:37.000|閱讀 325 次
概述:使用GdPicture.NET Toolkits可以快速實現將多頁TIFF文件轉換為多頁JBIG2格式,本文將給出示例具體說明。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
使用GdPicture.NET Toolkits可以快速實現將多頁TIFF文件轉換為多頁JBIG2格式,下面是示例代碼:
Dim oGdPictureImaging As New GdPictureImaging Dim TiffID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("c:\multipage.tif") Dim Jbig2ID As Integer = 0 For i As Integer = 1 To oGdPictureImaging.TiffGetPageCount(TiffID) If i = 1 Then Jbig2ID = oGdPictureImaging.CreateClonedGdPictureImageI(TiffID) oGdPictureImaging.JBIG2SaveAsMultiPageFile(Jbig2ID, "c:\multipage.jb2") Else oGdPictureImaging.TiffSelectPage(TiffID, i) oGdPictureImaging.JBIG2AddToMultiPageFile(Jbig2ID, TiffID) End If Next oGdPictureImaging.JBIG2CloseMultiPageFile(Jbig2ID) oGdPictureImaging.ReleaseGdPictureImage(TiffID) oGdPictureImaging.ReleaseGdPictureImage(Jbig2ID) MsgBox("done")
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都控件網