没有找到合适的产品?
联系客服协助选型:023-68661681
提供3000多款全球软件/控件产品
针对软件研发的各个阶段提供专业培训与技术咨询
根据客户需求提供定制化的软件开发服务
全球知名设计软件,显著提升设计质量
打造以经营为中心,实现生产过程透明化管理
帮助企业合理产能分配,提高资源利用率
快速打造数字化生产线,实现全流程追溯
生产过程精准追溯,满足企业合规要求
以六西格玛为理论基础,实现产品质量全数字化管理
通过大屏电子看板,实现车间透明化管理
对设备进行全生命周期管理,提高设备综合利用率
实现设备数据的实时采集与监控
利用数字化技术提升油气勘探的效率和成功率
钻井计划优化、实时监控和风险评估
提供业务洞察与决策支持实现数据驱动决策
原创|使用教程|编辑:龚雪|2015-12-09 14:40:53.000|阅读 378 次
概述:本文将对GdPicture.NET中多页TIFF文件的页面的添加进行简单介绍。其中给出了3种方法,代码可供参考。
# 界面/图表报表/文档/IDE等千款热门软控件火热销售中 >>
相关链接:
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
本文译自
购买最新正版授权!""
慧都年终盛典火爆开启,一年仅一次的最强促销,破冰钜惠不容错过!!优惠详情点击查看>>
本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@wqylolg.cn
本文将探讨如何使用嵌入式查看器组件在 ASP.NET Core Web 应用程序中创建报告和仪表板的示例。
通过将 VMProtect 集成到 GitLab CI/CD,开发者可以在代码推送或合并请求时自动对二进制文件进行保护,防止逆向工程和盗版
二维码正成为越来越流行的信息存储和共享工具。在报告和文档中,二维码可用于快速访问网站、联系人、产品信息等。
本文主要介绍如何使用DevExpress WPF Grid控件的创建栏(Bands),欢迎下载最新版组件体验!
服务电话
重庆/ 023-68661681
华东/ 13452821722
华南/ 18100878085
华北/ 17347785263
客户支持
技术支持咨询服务
服务热线:400-700-1020
邮箱:sales@wqylolg.cn
关注我们
地址 : 重庆市九龙坡区火炬大道69号6幢