Houve um problema que as tags originais do DICOM estavam sendo perdidas na exportação. Agora esse problema foi resolvido e as tags DICOM originais estão sendo mantidas após a exportação.
using (DicomImage image = (DicomImage)Image.Load("IMG-0001-00001.dcm"))
{
image.Save(outputFilePath);
using (DicomImage imageSaved = (DicomImage)Image.Load("output1.dcm"))
{
bool isSuccess = Math.Abs(imageSaved.FileInfo.DicomInfo.Count - image.FileInfo.DicomInfo.Count) < 5;
}
}
Exportação de APS para PSD Vetorizado
Implementado o recurso de exportação de APS
para o formato PSD
Vetorizado via API.
//Export vector image to PSD format keeping vector shapes
//Aspose.Imaging allows to export vector image formats such as CDR, EMF, EPS, ODG, SVG, WMF to the PSD format,
//while keeping vector properties of the original, utilizing PSD Shapes, Paths //and Vector Masks.
//Currently, export of not very complex shapes is supported, whithout texture brushes or open shapes with stroke,
//which will be improved in the upcoming releases.
//Example
//Export from the CDR format to the PSD format preserving vector
//properties is as simple as the following snippet:
using (Image image = Imaging.Image.Load("sample.cdr"))
{
PsdOptions imageOptions = new PsdOptions()
{
VectorRasterizationOptions = options,
VectorizationOptions = new PsdVectorizationOptions()
{
VectorDataCompositionMode = VectorDataCompositionMode.SeparateLayers
}
};
imageOptions.VectorRasterizationOptions.PageWidth = image.Width;
imageOptions.VectorRasterizationOptions.PageHeight = image.Height;
image.Save(outputFileName, imageOptions);
}
Exportar PNG para BMP 32bits em Modo Transparente
Anteriormente, em algumas instâncias de exportação de PNG para BMP de 32 bits, a transparência estava sendo perdida. Agora esse problema foi resolvido.
var sourcePath = "input.png"; // png image with alpha
var outputPath = "output-bmp.bmp";
using (Image pngImage = Image.Load(sourcePath))
{
pngImage.Save(outputPath, new BmpOptions());
}
Para obter uma lista completa de recursos, aprimoramentos e correções de bugs nesta versão, visite Aspose.Imaging for .NET 22.3.