Blader door onze producten

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.

 

Aspose.Imaging für .NET 22.5

Downloaden  Helpforum 

Bestandsdetails

  • Downloads:
  • 1
  • Dateigröße:
  • 38.4 MB
  • Hinzugefügt am:
  • : 3 days ago [5/13/2022]

Bestandsdetails

Net2.0-Entfernungshinweis – Bitte beachten Sie, dass in den nächsten Versionen die NET2.0-Konfiguration nicht unterstützt wird.

Verbesserte DIB-Verarbeitungsunterstützung

In dieser Version der API wurde die Unterstützung für die Verarbeitung des DIB-Rasterformats verbessert.

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());
}

Rasterbildextraktion aus Vektoren vereinheitlichen

Vereinheitlichte Extraktion von Rasterbildern, eingebettet in Vektorformate.

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-Unterstützung für die Umwandlung von SVGZ in PNG

Zuvor haben wir unter Linux den fehlerhaften Export von „SVGZ“ nach „PNG“ beobachtet. Dieses Problem wurde nun behoben.

Bitte führen Sie den folgenden Code im Linux-System aus.

 using (var image = Aspose.Imaging.Image.Load("example.svgz"))
 {
     image.Save("result.png", new PngOptions());
 }

Verbesserter GIF-zu-APNG-Export

Das Problem des falschen Exports von „GIF“ nach „APNG“ wurde behoben.

using (GifImage image = (GifImage)Image.Load(inputFileName))
{
    image.Save(outputFileName, new ApngOptions() { ColorType = PngColorType.TruecolorWithAlpha });
}

Bessere Unterstützung für das DICOM-Format

Die Ausnahme beim Speichern von „DICOM“-Bildern wurde behoben und behoben.

using (Image image = Image.Load("sample.dcm"))
{
    image.Save("sample.dcm.jpeg", new JpegOptions());
}

Eine vollständige Liste der Funktionen, Verbesserungen und Fehlerbehebungen in dieser Version finden Sie unter Aspose.Imaging for .NET 22.5.

 Deutsch