原創|產品更新|編輯:李顯亮|2020-09-29 09:49:11.880|閱讀 361 次
概述:圖像處理庫Aspose.Imaging for .NET更新至最新版v20.9,在Dicom導出器中支持Jpeg,Jpeg2000和RLE壓縮方法,支持將PNG轉換為TGA格式,以WebP格式實現對Exif塊的支持?;鄱季W提供安裝包下載、中文教程、優惠購買等服務。
# 界面/圖表報表/文檔/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@fc6vip.cn