原創(chuàng)|產(chǎn)品更新|編輯:李顯亮|2020-09-29 09:49:11.880|閱讀 361 次
概述:圖像處理庫(kù)Aspose.Imaging for .NET更新至最新版v20.9,在Dicom導(dǎo)出器中支持Jpeg,Jpeg2000和RLE壓縮方法,支持將PNG轉(zhuǎn)換為TGA格式,以WebP格式實(shí)現(xiàn)對(duì)Exif塊的支持。慧都網(wǎng)提供安裝包下載、中文教程、優(yōu)惠購(gòu)買等服務(wù)。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Aspose.Imaging for .NET是一種高級(jí)圖像處理控件,允許開(kāi)發(fā)人員創(chuàng)建,編輯,繪制或轉(zhuǎn)換圖像。圖像導(dǎo)出和轉(zhuǎn)換是API核心功能之一,它允許在不安裝Photoshop應(yīng)用程序或任何其他圖像編輯器的情況下保存為AdobePhotoshop®本機(jī)格式。
事實(shí)證明,Aspose.Imaging是處理各種圖像格式的強(qiáng)大API。除單頁(yè)圖像外,Aspose.Imaging還支持處理多頁(yè)圖像,包括GIF,TIFF,PSD,DICOM,CDR和WebP。
近期發(fā)布了Aspose.Imaging for .NET v20.9,在Dicom導(dǎo)出器中支持Jpeg,Jpeg2000和RLE壓縮方法,支持將PNG轉(zhuǎn)換為TGA格式,以WebP格式實(shí)現(xiàn)對(duì)Exif塊的支持,修復(fù)保存SVG和TIFF時(shí)圖像保存失敗異常,還沒(méi)使用過(guò)的朋友可以點(diǎn)擊下載最新版Aspose.Imaging(安裝包僅提供部分功能,并設(shè)置限制,如需試用完整功能請(qǐng))。
key | 概述 | 類別 |
---|---|---|
IMAGINGNET-4018 | 在Dicom導(dǎo)出器中支持Jpeg,Jpeg2000和RLE壓縮方法 | 功能 |
IMAGINGNET-3615 | 將PNG轉(zhuǎn)換為TGA格式 | 功能 |
IMAGINGNET-4071 | 以WebP格式實(shí)現(xiàn)對(duì)Exif塊的支持 | 增強(qiáng)功能 |
IMAGINGNET-4067 | 導(dǎo)出PSD圖像時(shí)不考慮Alpha通道 | Bug修復(fù) |
IMAGINGNET-4066 | PsdExporter中未使用PsdOptions.XmpData屬性 | Bug修復(fù) |
IMAGINGNET-4064 | 導(dǎo)出到EMF會(huì)以錯(cuò)誤的比例縮放圖像 | Bug修復(fù) |
IMAGINGNET-4063 | 導(dǎo)出到WMF會(huì)以錯(cuò)誤的比例縮放圖像 | Bug修復(fù) |
IMAGINGNET-4062 | 支持在TIFF導(dǎo)出器中從TiffOptions導(dǎo)出XMP元數(shù)據(jù) | 增強(qiáng)功能 |
IMAGINGNET-4026 | 加載JPF時(shí),索引超出了數(shù)組異常的范圍 | Bug修復(fù) |
IMAGINGNET-4003 | 在保存數(shù)據(jù)時(shí)將CompressionLevel添加到PngOptions | Bug修復(fù) |
IMAGINGNET-3992 | 將柵格圖像導(dǎo)出到圖元文件的錯(cuò)誤結(jié)果 | Bug修復(fù) |
IMAGINGNET-3990 | 導(dǎo)出幾種矢量類型的圖像時(shí)會(huì)發(fā)生NullReferenceException | Bug修復(fù) |
IMAGINGNET-3985 | 根據(jù)Aspose.Psd調(diào)整大小實(shí)施其他調(diào)整大小方法 | Bug修復(fù) |
IMAGINGNET-3958 | 保存TIFF時(shí)圖像保存失敗異常 | Bug修復(fù) |
IMAGINGNET-3954 | 保存SVG時(shí)圖像保存失敗異常 | Bug修復(fù) |
IMAGINGNET-3938 | 支持導(dǎo)出和導(dǎo)入到TGA文件格式 | 增強(qiáng)功能 |
// 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); }
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn