浏览我们的产品 Toggle navigation
If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.
Net2.0 删除通知 - 请注意,在最近的版本中将不支持 NET2.0 配置。
在此 API 版本中,改进了“DIB”光栅格式处理支持。
CdrRasterizationOptions rasterizationOptions = new CdrRasterizationOptions(); PsdVectorizationOptions psdVectorizationOptions = new PsdVectorizationOptions() { VectorDataCompositionMode = VectorDataCompositionMode.SeparateLayers }; PsdOptions psdOptions = new PsdOptions() { VectorRasterizationOptions = rasterizationOptions, VectorizationOptions = psdVectorizationOptions }; string inputFileName = "brushes.cdr"; string outputFileName = "brushes.cdr.psd"; using (Image image = Image.Load(inputFileName)) { psdOptions.VectorRasterizationOptions.PageWidth = image.Width; psdOptions.VectorRasterizationOptions.PageHeight = image.Height; image.Save(outputFileName, psdOptions); image.Save(outputFileName + ".png", new PngOptions()); }
统一提取光栅图像,嵌入矢量格式。
private static string GetExtension(FileFormat format) { switch (format) { case FileFormat.Jpeg: return ".jpg"; case FileFormat.Png: return ".png"; case FileFormat.Bmp: return ".bmp"; default: return "." + format.ToString(); } } var baseFolder = @"D:\test"; var outputFolder = Path.Combine(baseFolder, "out"); Directory.CreateDirectory(outputFolder); var fileNames = new string[] {"test.cdr", "test.cmx", "test.svg", "test.emf", "test.wmf", "test.odg", "test.otg", "test.eps"}; foreach (var fileName in fileNames) { var inputFileName = Path.Combine(baseFolder, fileName); using (Image image = Image.Load(inputFileName)) { var images = ((VectorImage) image).GetEmbeddedImages(); int i = 0; foreach (EmbeddedImage im in images) { string outFileName = string.Format("{2}_image{0}{1}", i++, GetExtension(im.Image.FileFormat), image.FileFormat); string outFilePath = Path.Combine(outputFolder, outFileName); using (im) { im.Image.Save(outFilePath); } } } }
以前,我们观察到在 Linux 上从 SVGZ 到 PNG 的错误导出。这个问题现在已经解决了。
SVGZ
PNG
请在Linux系统中执行以下代码。
using (var image = Aspose.Imaging.Image.Load("example.svgz")) { image.Save("result.png", new PngOptions()); }
纠正了从 GIF 到 APNG 的错误导出问题。
GIF
APNG
using (GifImage image = (GifImage)Image.Load(inputFileName)) { image.Save(outputFileName, new ApngOptions() { ColorType = PngColorType.TruecolorWithAlpha }); }
解决并修复了保存“DICOM”图像的异常。
using (Image image = Image.Load("sample.dcm")) { image.Save("sample.dcm.jpeg", new JpegOptions()); }
有关此版本中的功能、增强和错误修复的完整列表,请访问 Aspose.Imaging for .NET 22.5。