Aspose.Imaging for .NET 24.8 (DLLs-only) delivers essential updates to enhance your image processing capabilities. This DLLs package focuses on core functionalities, including image loading, format support, and more.
Easily Load Remote Images from URLs
Effortlessly access images from web addresses without the hassle of a local storage and enhance the image manipulation experience for your end-users with the latest .NET imaging library release. This code sample illustrates the feature usage.
using (var image = Image.Load("https://docs.aspose.com/imaging/net/home_1.png"))
{
Assert.AreEqual(image.FileFormat, FileFormat.Png);
}
Source*
Supercharged TIFF Support
Developers can conveniently save and manipulate multi-frame TIFF images in their cross-platform C# and VB.NET applications and improve their solutions. Check out the following code example to learn how to use this functionality in C#.
MemoryStream ms = new MemoryStream();
TiffOptions tiffOptions = new TiffOptions(Aspose.Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.TiffLzwRgba);
tiffOptions.Source = new Aspose.Imaging.Sources.StreamSource(ms);
int[] pixels = new int[2500];
TiffImage image = (TiffImage)Image.Create(tiffOptions, 50, 50);
image.SaveArgb32Pixels(image.Bounds, pixels);
image.Save();
for (int i = 0; i < 7; ++i)
{
ImageOptionsBase newImageOptions = tiffOptions.Clone();
newImageOptions.Source = new Aspose.Imaging.Sources.StreamSource(new MemoryStream());
using (TiffImage newTiffImage = (TiffImage)Image.Create(newImageOptions, 50, 50))
{
newTiffImage.SaveArgb32Pixels(image.Bounds, pixels);
foreach (TiffFrame frame in newTiffImage.Frames)
{
TiffFrame frameCopy = TiffFrame.CopyFrame(frame);
image.AddFrame(frameCopy);
}
}
}
image.Save();
Source*
Empowered PNG Creation
Aspose.Imaging for .NET 24.8 lets you create high-quality 16-bit PNG images accurately. The following C# code example highlights how to use this feature.
var outputPath = "@output64Bit.png";
var createOptions = new PngOptions
{
BitDepth = 16,
ColorType = PngColorType.TruecolorWithAlpha,
CompressionLevel = 9,
FilterType = PngFilterType.Sub,
Progressive = true
};
using (var pngImage = new PngImage(createOptions, 100, 100))
{
var graphics = new Graphics(pngImage);
var gradientBrush = new LinearGradientBrush(
new Point(0, 0),
new Point(pngImage.Width, pngImage.Height),
Color.Blue,
Color.Transparent);
graphics.FillRectangle(gradientBrush, pngImage.Bounds);
pngImage.Save(outputPath);
}
image.Save();
Source*
Fine-tuned PDF Conversion
Ensure correct page sizes while converting images to PDF format with this C# library version. Experience highly accurate PDF conversions and generate professional looking PDF documents from images in C#.
var InputFile = "AV Seite 2.jpeg";
var outputFile = "AV Seite 2.jpeg.pdf";
using (var image = Image.Load(InputFile, new Aspose.Imaging.LoadOptions()))
{
using (var exportOptions = new PdfOptions())
{
exportOptions.PdfDocumentInfo = new PdfDocumentInfo();
//exportOptions.UseOriginalImageResolution = true;
image.Save(outputFile, exportOptions);
}
}
Source*
You can obtain precise horizontal and vertical DPI values for your raster images using this update, as showcased in this coding sample.
const string source = "problematic.jpg";
using (RasterImage image = (RasterImage)Image.Load(source))
{
Console.WriteLine($"Horizontal resolution: {image.HorizontalResolution}, Vertical resolution: {image.VerticalResolution}");
}
Source*
Dynamic EPS Conversion
Our C# image processing API supports seamlessly converting EPS files to other images. This update enhances the portfolio of your .NET image conversion applications. Here is how to use this feature.
var input = @"input.eps";
using var image = Image.Load(input);
image.Save(input + ".svg");
Source*
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.Imaging for .NET 24.8 Release Notes.