原創|產品更新|編輯:李顯亮|2021-02-25 10:15:20.910|閱讀 122 次
概述: Aspose.Imaging for .NET更新至最新版v21.2,此版本包含新功能和增強功能:在BmpLoader中支持BMP RLE4壓縮圖像,探索文件格式(CMX v11)并添加對此文件的支持,歡迎下載體驗。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Aspose.Imaging是一種高級圖像處理控件,允許開發人員創建,編輯,繪制或轉換圖像。圖像導出和轉換是API核心功能之一,它允許在不安裝Photoshop應用程序或任何其他圖像編輯器的情況下保存為AdobePhotoshop®本機格式。
事實證明,Aspose.Imaging是處理各種圖像格式的強大API。除單頁圖像外,Aspose.Imaging還支持處理多頁圖像,包括GIF,TIFF,PSD,DICOM,CDR和WebP。
近期發布了Aspose.Imaging for .NET v21.2,此版本包含新功能和增強功能:在BmpLoader中支持BMP RLE4壓縮圖像,探索文件格式(CMX v11)并添加對此文件的支持,還沒使用過的朋友可以點擊下載最新版Aspose.Imaging
key | 概述 | 類別 |
---|---|---|
IMAGINGNET-4076 | 在BmpLoader中支持BMP RLE4壓縮圖像 | 功能 |
IMAGINGNET-3862 | 探索文件格式(CMX v11)并添加對此文件的支持 | 功能 |
IMAGINGNET-4282 | 在ImageMasking.ApplyMask方法中支持羽化功能 | 增強功能 |
using (Image image = Image.Load("Rle4.bmp")) { image.Save( "output.bmp", new BmpOptions() { Compression = BitmapCompression.Rle4, BitsPerPixel = 4, Palette = ColorPaletteHelper.Create4Bit() }); }
var files = new string[] { "Aspose2.cmx", "asposenet_457_src02.cmx" }; var baseFolder = Path.Combine("D:", "test"); foreach (var fileName in files) { var inputFilePath = Path.Combine(baseFolder, fileName); var outputFilePath = inputFilePath + ".tif"; using (var image = Image.Load(inputFilePath)) { image.Save(outputFilePath, new TiffOptions(TiffExpectedFormat.TiffDeflateRgb)); } }
using (RasterImage targetImage = (RasterImage)Image.Load("Blue hills.png")) { ImageOptionsBase maskOptions = new BmpOptions { Source = new StreamSource(new MemoryStream()) }; using (RasterImage mask = (RasterImage)Image. Create(maskOptions, targetImage.Width, targetImage.Height)) { Graphics graphics = new Graphics(mask); graphics.FillPolygon( new SolidBrush(Color.White), new Point[] { new Point(targetImage.Width / 2, 0), new Point(targetImage.Width, targetImage.Height / 2), new Point(targetImage.Width / 2, targetImage.Height), new Point(0, targetImage.Height / 2), }); ImageMasking.ApplyMask( targetImage, mask, new GraphCutMaskingOptions() { FeatheringRadius = 2, BackgroundReplacementColor = Color.Coral }); } targetImage.Save("output.png"); }
如果你想試用Aspose的全部完整功能,可聯系在線客服獲取30天臨時授權體驗。
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn