原創(chuàng)|其它|編輯:郝浩|2012-12-24 15:51:04.000|閱讀 379 次
概述:在使用GdPicture.NET的時(shí)候,用戶可以選擇一個(gè)treenode頁面(表示多頁TIFF文件其中的一頁),并把保存的頁面保存到一個(gè)新的多頁TIFF文件中。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關(guān)鏈接:
在使用GdPicture.NET的時(shí)候,用戶可以選擇一個(gè)treenode頁面(表示多頁TIFF文件其中的一頁),并把保存的頁面保存到一個(gè)新的多頁TIFF文件中。
Dim ogdViewer As New GdPicture.GdViewer Dim oGdPictureImaging As New GdPicture.GdPictureImaging Dim intSourceDocID As Integer Dim intDestDocID As Integer Dim intPageCount As Integer = 0 Dim nP As TreeNode 'delete our temp file if we have one on disk If System.IO.File.Exists("c:\NodeTest.tif") Then System.IO.File.Delete("c:\NodeTest.tif") End If ogdViewer.SetLicenseNumber("XXXX") 'get original file intSourceDocID = oGdPictureImaging.CreateGdPictureImageFromFile(strLastFileDownloadedToTempPath) 'attach pages For Each nP In tvPages.Nodes 'attach page intPageCount = intPageCount + 1 'display page Call oGdPictureImaging.TiffSelectPage(intSourceDocID, GetPageNumberFromNode(nP.Text)) 'append pages If intPageCount = 1 Then 'first page intDestDocID = oGdPictureImaging.CreateClonedGdPictureImageI(intSourceDocID) oGdPictureImaging.TiffSaveAsMultiPageFile(intDestDocID, "c:\NodeTest.tif", GdPicture.TiffCompression.TiffCompressionCCITT4) Else 'attach page oGdPictureImaging.TiffAddToMultiPageFile(intDestDocID, intSourceDocID) End If Next oGdPictureImaging.TiffCloseMultiPageFile(intDestDocID) oGdPictureImaging.ReleaseGdPictureImage(intSourceDocID) oGdPictureImaging.ReleaseGdPictureImage(intDestDocID)
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:慧都控件網(wǎng)