GdPicture.NET是一款功能全面且可无限分发的文档图像处理的一体化工具包。其一体化主要包含:PDF、图像处理、文档影像、扫描、条形码、打印、OCR、表单处理、注释等。本文将简单介绍在GdPicture.NET中多页TIFF文件的页面的添加。
这里讲提供三种方法,给出了代码可供参考:
1、末尾的添加
Dim oGdPictureImaging As New GdPictureImaging Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("multipage.tif") oGdPictureImaging.TiffAppendPageFromFile(ImageID, "addition.tif") oGdPictureImaging.TiffSaveMultiPageToFile(ImageID, "multipageAdded.tif", TiffCompression.TiffCompressionAUTO) oGdPictureImaging.ReleaseGdPictureImage(ImageID)
可用上面相同的方法添加一个页面保存为GdPictureImage
Dim oGdPictureImaging As New GdPictureImaging Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("multipage.tif") Dim AddImgID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("addition.tif") oGdPictureImaging.TiffAppendPageFromGdPictureImage(ImageID, AddImgID) oGdPictureImaging.TiffSaveMultiPageToFile(ImageID, "multipageAdded.tif", TiffCompression.TiffCompressionAUTO) oGdPictureImaging.ReleaseGdPictureImage(ImageID) oGdPictureImaging.ReleaseGdPictureImage(AddImgID)
2、通过创建TiffSaveAsMultiPageFile()方法将页面到文件末尾
Dim oGdPictureImaging As New GdPictureImaging Dim ImageID, TiffID As Integer ImageID = oGdPictureImaging.CreateGdPictureImageFromFile("image1.tif") oGdPictureImaging.TiffSaveAsMultiPageFile(ImageID, "multipage.tif", TiffCompression.TiffCompressionAUTO) 'At this step ImageID1 handles a reference to the multipage tiff stream. TiffID = ImageID 'adding a second page in the multipage stream from image2.tif ImageID = oGdPictureImaging.CreateGdPictureImageFromFile("image2.tif") oGdPictureImaging.TiffAddToMultiPageFile(TiffID, ImageID) oGdPictureImaging.ReleaseGdPictureImage(ImageID) oGdPictureImaging.ReleaseGdPictureImage(ImageID) oGdPictureImaging.TiffCloseMultiPageFile(TiffID) 'end the file oGdPictureImaging.ReleaseGdPictureImage(TiffID) 'releasing the input bitmap from the memory
3、任意位置的添加
Dim oGdPictureImaging As New GdPictureImaging Dim ImageID As Integer ImageID = oGdPictureImaging.CreateGdPictureImageFromFile("multipage.tif") oGdPictureImaging.TiffInsertPageFromFile(ImageID, 3, "addition.tif") oGdPictureImaging.TiffSaveMultiPageToFile(ImageID, "multipageAdded.tif", TiffCompression.TiffCompressionAUTO) oGdPictureImaging.ReleaseGdPictureImage(ImageID)
Dim oGdPictureImaging As New GdPictureImaging Dim ImageID As Integer Dim AddImgID As Integer ImageID = oGdPictureImaging.CreateGdPictureImageFromFile("multipage.tif") AddImgID = oGdPictureImaging.CreateGdPictureImageFromFile("addition.tif") oGdPictureImaging.TiffInsertPageFromGdPictureImage(ImageID, 3, AddImgID) oGdPictureImaging.TiffSaveMultiPageToFile(ImageID, "multipageAdded.tif", TiffCompression.TiffCompressionAUTO) oGdPictureImaging.ReleaseGdPictureImage(ImageID) oGdPictureImaging.ReleaseGdPictureImage(AddImgID)
我可以看到其基本方法:Add—Save—Released
点击查看产品详情
相关推荐
TIFF文件合并:将散页TIFF文件合并成一个多页TIFF,同时支持将JPG、BMP、PNG、GIF转换成TIFF,其中JPG转TIFF是无损转换。可以指定每个文件包含的散页数,如用于Office 2003的OCR识别时最好每个文件不超过100页。 ...
VC.NET编程实现TIFF多帧图像文件代码VC.NET programming code TIFF multi-frame image files
TIFF文件合并:将散页TIFF文件合并成一个多页TIFF,同时支持将JPG、BMP、PNG、GIF转换成TIFF,其中JPG转TIFF是无损转换。可以指定每个文件包含的散页数,如用于Office 2003的OCR识别时最好每个文件不超过100页。 ...
VC.net 演示制作TIFF多帧动画图像文件,程序功能:浏览图像、选择图像、制作图像、上幅图像、下幅图像等。
VC.net 演示制作TIFF多帧动画图像文件,程序功能:浏览图像、选择图像、制作图像、上幅图像、下幅图像等。
文件列表: libpcap-cygwin-port.tar.gz libnet-cygwin-port.tar.gz libtiff-cygwin-port.tar.gz libtiff-mingw-port.tar.gz libtiff-vc-vs.net-port.rar 说明: 所有这些PORTS项目都是horse_b...
靖源多页tiff生成器是一款bmp、png、tif/tiff、gif、jpg/jpeg等图像格式文档转换为多页tiff格式文件的软件。 靖源多页tiff生成器使用方法:1.添加要转换的图片 2.点击转换 3.生成成功 使TIF格式文件多页显示的方法...
合并多页TIFF 合并tiff文件
本程序可通过VS2010实现打开TIFF及TIF格式文件,内含详细实现代码及用到的TIFF库
tiff图片合并方法,支持单页合并,多页合并。。
你可以采用Visual Studio.NET 编辑器,用C#或Visual Basic .NET 语言编写报表代码,其中包含了ASP.NET 服务器控件,帮助您安装web客户端浏览器以及WinForms浏览器控件,以提供单页浏览,多页浏览,文本搜索,内容...
libtiff.net-4.0.9最新版.NET平台TIFF库,支持C#,VB等语言,libtiff-4.0.9用.NET封装类库,直接上手就能用,提供tiff图像处理基础操作,读取写入创建,压缩解压等
winForm程序选择tiff文件后,对tiff文件进行拆分,将拆分后的矩阵展示在窗口中,可以拆分多个tiff文件展示在窗口,点击合并后,将所有展示的图片合并成新的tiff文件并输出到本地
对图像文件的操作 ,主要功能有:多张图片合并成一个tiff文件、将tiff文件的拆分成多张图片以及多个tiff文件合并成一个tiff文件
(Java实现)JPG to TIFF等图片格式和TIFF图片合并功能解决方案。 有需要的看一看
java读取tiff文件,并获得长,高。
程序完成adf格式文件转成TIFF格式文件。
合并多页PDF 使用控件 iTextSharp ,更根据图片大小自动适应PDF页面,调整纵向...合并多页TIFF 使用System.Drawing.Imaging.ImageCodecInfo 、 System.Drawing.Imaging.EncoderParameters 等.net自带类实现多页TIFF合并
CFile下的Open---利用CFile打开TIFF文件并将其读入内存,然后利用CFile重新写成TIFF文件 Save -----没用 设置像素---------前四项:选择要剪切的图像的两个点的坐标,后两项:剪切后的图像要放大到多宽
JAVA读取TIFF,并将读取的TIFF所有页合并成一个TIFF文件