提供3000多款全球软件/控件产品
针对软件研发的各个阶段提供专业培训与技术咨询
根据客户需求提供定制化的软件开发服务
全球知名设计软件,显著提升设计质量
打造以经营为中心,实现生产过程透明化管理
帮助企业合理产能分配,提高资源利用率
快速打造数字化生产线,实现全流程追溯
生产过程精准追溯,满足企业合规要求
以六西格玛为理论基础,实现产品质量全数字化管理
通过大屏电子看板,实现车间透明化管理
对设备进行全生命周期管理,提高设备综合利用率
实现设备数据的实时采集与监控
利用数字化技术提升油气勘探的效率和成功率
钻井计划优化、实时监控和风险评估
提供业务洞察与决策支持实现数据驱动决策
原创|产品更新|编辑:李显亮|2020-09-29 09:49:11.880|阅读 267 次
概述:图像处理库Aspose.Imaging for .NET更新至最新版v20.9,在Dicom导出器中支持Jpeg,Jpeg2000和RLE压缩方法,支持将PNG转换为TGA格式,以WebP格式实现对Exif块的支持。慧都网提供安装包下载、中文教程、优惠购买等服务。
# 慧都年终大促·界面/图表报表/文档/IDE等千款热门软控件火热促销中 >>
Aspose.Imaging for .NET是一种高级图像处理控件,允许开发人员创建,编辑,绘制或转换图像。图像导出和转换是API核心功能之一,它允许在不安装Photoshop应用程序或任何其他图像编辑器的情况下保存为AdobePhotoshop®本机格式。
事实证明,Aspose.Imaging是处理各种图像格式的强大API。除单页图像外,Aspose.Imaging还支持处理多页图像,包括GIF,TIFF,PSD,DICOM,CDR和WebP。
近期发布了Aspose.Imaging for .NET v20.9,在Dicom导出器中支持Jpeg,Jpeg2000和RLE压缩方法,支持将PNG转换为TGA格式,以WebP格式实现对Exif块的支持,修复保存SVG和TIFF时图像保存失败异常,还没使用过的朋友可以点击下载最新版Aspose.Imaging(安装包仅提供部分功能,并设置限制,如需试用完整功能请)。
key | 概述 | 类别 |
---|---|---|
IMAGINGNET-4018 | 在Dicom导出器中支持Jpeg,Jpeg2000和RLE压缩方法 | 功能 |
IMAGINGNET-3615 | 将PNG转换为TGA格式 | 功能 |
IMAGINGNET-4071 | 以WebP格式实现对Exif块的支持 | 增强功能 |
IMAGINGNET-4067 | 导出PSD图像时不考虑Alpha通道 | Bug修复 |
IMAGINGNET-4066 | PsdExporter中未使用PsdOptions.XmpData属性 | Bug修复 |
IMAGINGNET-4064 | 导出到EMF会以错误的比例缩放图像 | Bug修复 |
IMAGINGNET-4063 | 导出到WMF会以错误的比例缩放图像 | Bug修复 |
IMAGINGNET-4062 | 支持在TIFF导出器中从TiffOptions导出XMP元数据 | 增强功能 |
IMAGINGNET-4026 | 加载JPF时,索引超出了数组异常的范围 | Bug修复 |
IMAGINGNET-4003 | 在保存数据时将CompressionLevel添加到PngOptions | Bug修复 |
IMAGINGNET-3992 | 将栅格图像导出到图元文件的错误结果 | Bug修复 |
IMAGINGNET-3990 | 导出几种矢量类型的图像时会发生NullReferenceException | Bug修复 |
IMAGINGNET-3985 | 根据Aspose.Psd调整大小实施其他调整大小方法 | Bug修复 |
IMAGINGNET-3958 | 保存TIFF时图像保存失败异常 | Bug修复 |
IMAGINGNET-3954 | 保存SVG时图像保存失败异常 | Bug修复 |
IMAGINGNET-3938 | 支持导出和导入到TGA文件格式 | 增强功能 |
// When exporting to PSD, options for compression, color type and bitness are available: using (Image image = Image.Load(SRC)) { // Export to PSD with RLE compression image.Save(DEST1, new PsdOptions() { CompressionMethod = CompressionMethod.RLE }); // Export to PSD with RGB color type image.Save(DEST2, new PsdOptions() { ColorMode = ColorModes.Rgb, ChannelsCount = 3, ChannelBitsCount = 8 });
using (Image image = Image.Load("Progressive.png")) { image.Save("Progressive.png.psd", new PsdOptions() { CompressionMethod = CompressionMethod.RLE, ColorMode = ColorModes.Rgb, ChannelBitsCount = 8, ChannelsCount = 4 }); }
### What is a DICOM Image File? The DICOM standard is useful for integrating all modern imaging equipments, accessories, networking servers, workstations and printers. Because of its ease of integration and continuous evolution this communication standard has over the years achieved a nearly universal level of acceptance among vendors of radiological equipment. A DICOM image file is an outcome of the Digital Imaging and Communications in Medicine standard. Specifically, image files that are compliant with part 10 of the DICOM standard are generally referred to as “DICOM format files” or simply “DICOM files” and are represented as “.dcm”. ### DICOM compression settings The property ***DicomOptions.Compression*** allows you to specify compression settings. For instance, ***CompressionType*** enumeration allows you to select compression algorithm: *None*, *Jpeg*, *Jpeg2000* or *Rle*. The *None* option corresponds to uncompressed DICOM image. The following code shows how to use DICOM compression settings: using (var inputImage = Image.Load("original.jpg")) { var options = new DicomOptions { ColorType = ColorType.Rgb24Bit, Compression = new Compression { Type = CompressionType.None } }; inputImage.Save("original_Uncompressed.dcm", options); } ### Using JPEG compression in DICOM image To use JPEG compression algorithm you should specify *CompressionType.Jpeg* enumeration value in ***Compression.Type*** property: using (var inputImage = Image.Load("original.jpg")) { var options = new DicomOptions { ColorType = ColorType.Rgb24Bit, Compression = new Compression { Type = CompressionType.Jpeg } }; inputImage.Save("original_JPEG.dcm", options); } You can tune JPEG compression algorithm using ***Compression.Jpeg*** property. For instance, you can specify the *CompressionType*, *SampleRoundingMode* and *Quality*: using (var inputImage = Image.Load("original.jpg")) { var options = new DicomOptions { ColorType = ColorType.Rgb24Bit, Compression = new Compression { Type = CompressionType.Jpeg, Jpeg = new JpegOptions { CompressionType = JpegCompressionMode.Baseline, SampleRoundingMode = SampleRoundingMode.Truncate, Quality = 50 } } }; inputImage.Save("original_JPEG_2.dcm", options); } ### Using JPEG 2000 compression in DICOM image To use JPEG 2000 compression you need to use *CompressionType.Jpeg2000* enumeration value and ***Jpeg2000Options*** class for algorithm settings. The following code demonstrates how to specify JPEG 2000 *Codec* and *Irreversible* properties: using (var inputImage = Image.Load("original.jpg")) { var options = new DicomOptions { ColorType = ColorType.Rgb24Bit, Compression = new Compression { Type = CompressionType.Jpeg2000, Jpeg2000 = new Jpeg2000Options { Codec = Jpeg2000Codec.Jp2, Irreversible = false } } }; inputImage.Save("original_JPEG2000.dcm", options); } ### Using RLE compression in DICOM image For this compression type you need to use *CompressionType.Rle* enumeration value. The RLE compression algorithm doesn't have additional settings. The following code shows how you can use RLE compression algorithm in DICOM image: using (var inputImage = Image.Load("original.jpg")) { var options = new DicomOptions { ColorType = ColorType.Rgb24Bit, Compression = new Compression { Type = CompressionType.Rle } }; inputImage.Save("original_RLE.dcm", options); } ### How to change Color Type in DICOM compression The property ***DicomOptions.ColorType*** allows you to change color type in DICOM compression. There are several supported color types: *Grayscale8Bit*, *Grayscale16Bit* and *Rgb24Bit*. Use the following code in order to change the color type: using (var inputImage = Image.Load("original.jpg")) { var options = new DicomOptions { ColorType = ColorType.Grayscale8Bit }; inputImage.Save("original_8Bit.dcm", options); }
本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@cahobeh.cn
知名C/C++开发工具CLion全新发布v2024.3,新版本新语言引擎有显著改进等,欢迎下载新版体验!
强大的VS插件CodeRush已正式发布v24.2.3,新版本现在可以运行xUnit.Net v3测试等,欢迎下载最新版体验!
Spire.PDF 10.12.4 最新版本支持在进行多页打印时设置自动旋转方向。同时,一些已知问题也在本次更新中被成功修复,例如打印 PDF 文档时内容丢失的问题,欢迎下载体验~
日程安排控件dhtmlxScheduler v7.2全新发布,新版本增强并增加了编辑、修改等多个操作体验,欢迎下载最新版试用~
服务电话
重庆/ 023-68661681
华东/ 13452821722
华南/ 18100878085
华北/ 17347785263
客户支持
技术支持咨询服务
服务热线:400-700-1020
邮箱:sales@cahobeh.cn
关注我们
地址 : 重庆市九龙坡区火炬大道69号6幢