图像处理控件Aspose.Imaging v20.3三大新功能上线!支持导出为DICOM文件格式

近期发布了Aspose.Imaging for .NET v20.3,新增支持导出为DICOM文件格式和BMP文件格式的RLE8压缩,优化Tiff tile loaders,修复多处转换异常,欢迎下载体验。

事实证明,Aspose.Imaging是处理各种图像格式的强大API。除单页图像外,Aspose.Imaging还支持处理多页图像,包括GIF,TIFF,PSD,DICOM,CDR和WebP。

近期发布了Aspose.Imaging for .NET v20.3,新增支持导出为DICOM文件格式和BMP文件格式的RLE8压缩,优化Tiff tile loaders,修复多处转换异常,还没使用过的朋友可以最新版Aspose.Imaging

新增与改善

key 概述 类别
IMAGINGNET-3673 ImageSaveException:在批处理模式下使用API时,图像导出失败 功能
IMAGINGNET-3619 支持导出为DICOM文件格式 功能
IMAGINGNET-3534 支持BMP文件格式的RLE8压缩 功能
IMAGINGNET-3765 在Aspose.Imaging NetStandard中支持System.Drawing.Common v4.7 增强功能
IMAGINGNET-3736 Aspose.Imaging 19.12创业许可证未应用于.webp图像 增强功能
IMAGINGNET-3656 在.NET应用程序中旋转Tiff图像时出现内存不足异常 增强功能
IMAGINGNET-3617 将CDR转换为Pdf的参数异常 增强功能
IMAGINGNET-3604 Gif导出操作未正确应用于Gif多帧图像 增强功能
IMAGINGNET-3594 jpg未正确转换为PNG 增强功能
IMAGINGNET-3461 EMF未正确转换为PDF 增强功能
IMAGINGNET-3662 Tiff瓷砖装载机的支持优化策略 增强功能
IMAGINGNET-3641 将PNG转换为JPG时,图像DPI不会更改 增强功能

新功能用法示例

IMAGINGNET-3619支持导出到DICOM FILEFORMAT

//DICOM file format//Digital Imaging and Communications in Medicine is the standard for the communication and management of medical imaging information. DICOM is most commonly used for storing and transmitting //medical images in medical devices such as scanners, servers, printers and picture archiving and communication systems (PACS). DICOM is used worldwide to store, exchange, and transmit //medical images.//Various programs for Windows, macOS, and Linux can view DICOM files. DICOM uses the .DCM extension. These images can also be viewed online through certain web browsers. It is only //compatible using Chrome, Opera, Firefox, and Internet Explorer with the Google Chrome Frame extension installed.//Why to use DICOM/DICOM provides a well-tested and widely accepted foundation for Medical Image Management. The advantages of using DICOM:   //Makes medical imaging information interoperable.   //Integrates image-acquisition devices, PACS, workstations, VNAs and printers from different manufacturers.   //Is actively developed and maintained to meet the evolving technologies and needs of medical imaging.   //Is free to download and use.//Convert JPEG to DICOM//The next code sample converts JPEG image to DICOM file format:using (var image = Image.Load("sample.jpg")){   image.Save("sample.dcm", new DicomOptions());}//Image modifications//You can use methods of the Image class to modify source image before export. For instance, you can resize and rotate the image:using (var image = Image.Load("sample.jpg")){   image.Resize(300, 300);   image.RotateFlip(RotateFlipType.Rotate90FlipY);   image.Save("sample.dcm", new DicomOptions());}//Convert multipage images to DICOM//DICOM format supports multipage images. You can convert GIF or TIFF images to DICOM in the same way as JPEG images:using (var image = Image.Load("animation.gif")){   image.Save("animation.dcm", new DicomOptions());}//Export all DICOM pages to JPEG//In case if you need to extract all the pages from DICOM file you can use the next code. It creates separate JPEG file for each DICOM page:using (var image = (DicomImage)Image.Load("animation.dcm")){   for (var index = 0; index < image.Pages.Length; index++) { var page = image.Pages[index]; page.Save($"Page {index}.jpeg", new JpegOptions()); } }

IMAGINGNET-3736 Aspose.Imaging 19.12创业许可证不适用于.webp图像

//Bugs with using VentureLicense in Webp format fixed.//Please, remove license before execute this example.           string fileName = "asposenet_577_src01.webp";           string basePath = "D:";           string inputFileName = Path.Combine(basePath, fileName);           string outputFileName = inputFileName + ".webp";           using (RasterImage image = (RasterImage) Image.Load(inputFileName))            {               LicenseVenture(image, true);               image.Save(outputFileName);            }           string fileName = "asposenet_577_src01.webp";           string basePath = "D:";           string inputFileName = Path.Combine(basePath, fileName);           string outputFileName = Path.Combine(basePath, "false_" + fileName + ".webp");           LicenseHelper.RemoveLicense();           using (RasterImage image = (RasterImage) Image.Load(inputFileName))            {               image.Save(outputFileName);            }

IMAGINGNET-3534 支持BMP文件格式的RLE8压缩

 string inputFilePath = "1.bmp";           using (BmpImage image = (BmpImage)Image.Load(inputFilePath))           {               // PDF                PdfOptions pdfExportOptions = new PdfOptions();                pdfExportOptions.PdfDocumentInfo = new Aspose.Imaging.FileFormats.Pdf.PdfDocumentInfo();                image.Save("1.pdf", pdfExportOptions);               // PNG                PngOptions pngExportOptions = new PngOptions();                image.Save("1.png", pngExportOptions, new Rectangle(28, 28, 200, 200));           }


还想要更多吗可以点击阅读【2019 · Aspose最新资源整合】查找需要的教程资源。如果您有任何疑问或需求,请随时联系客服,我们很高兴为您提供查询和咨询
标签:

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2020年1月23日
下一篇 2020年1月23日

相关推荐

发表回复

登录后才能评论