Babar Raza July 24, 2014one Comment

Extensive Support for PNG Format & Specify Angle for Image Rotation with Aspose.Imaging for .NET 2.5.0

Extensive Support for PNG Format & Specify Angle for Image Rotation with Aspose.Imaging for .NET 2.5.0

July 24, 2014
Share on FacebookTweet about this on TwitterShare on LinkedIn

We are pleased to announce the monthly release of Aspose.Imaging for .NET, version 2.5.0. Our team has been hard at work bringing many useful improvements to this edition of the Aspose.Imaging API. You can start exploring the newly added features & enhancements immediately, but before you head to the download section, here is a look at just a few of the biggest features in this month’s release. For a full list of bug fixes and improvements please refer to the download pages in the link above. In case are going to upgrade the API, please refer to the article Public API Changes in reference to Aspose.Imaging for .NET 2.5.0.

Setting Resolution for PNG Image Format

With the release of 2.5.0, Aspose.Imaging for .NET supports setting the resolution for PNG image format. In order to provide this feature, the Aspose.Imaging for .NET API has exposed the ResolutionSetting class. The PngOptions class now has a property by the name ResolutionSettings that accepts an instance of the ResolutionSetting class to specify the horizontal & vertical resolution.

Specifying Transparency for PNG Images

One of the advantages of saving images in PNG format is that PNG can have transparent background. Aspose.Imaging for .NET has provided the feature to specify the transparency for PNG images. Starting from 2.5.0, Aspose.Imaging for .NET API has exposed the ResolutionSettings property for the PngOptions class that accepts an instance of the TransparentColorSetting class to specify any color that can be set as transparent color in the output image.

Rotating an Image to any Angle

With this release, the RasterImage class provides a Rotate method to help users who wish to rotate an image at a specific angle. The RasterImage.Rotate method accepts three parameters as listed below.

  1. Rotation Angle: A float type parameter specifies the rotation angle on which the image has to be rotated. A positive value rotates the image clockwise whereas a negative value performs an anticlockwise rotation.
  2. Resize Proportionally: A Boolean type parameter specifies if the image size has to changed according to the rotated rectangle (corner points) projections. If set to false, the image dimensions are untouched and only the internal image contents are rotated.
  3. Background Color: A color type parameter specifies the color to be filled in the background of the rotated image.

As always we appreciate your feedback so if you ever have anything to tell us about this release or anything else, please head to the Aspose.Imaging forum for a chat.

Join the Conversation

1 Comment

Leave a comment

Posted inAspose.Imaging Product Family, Babar Raza
 

Related Articles