Work with WMF metafiles and get last modified date of raster image with Aspose.Imaging for .NET 3.8.0

Share on FacebookTweet about this on TwitterShare on LinkedIn

We are pleased to announce the release of Aspose.Imaging for .NET 3.8.0. The major development in this release is support for WMF metafile. This release allows you to get last modified date of a raster image.

Support for WMF metafiles

Aspose.Imaging for .Net now supports the WMF metafile image format. WMF stands for Windows Media Format (Microsoft). Following is the list of operations that can be performed on a WMF image using Aspose.Imaging:

Get last modified date of an image

Using Aspose.Imaging for .Net, developers can get last modified date of a raster format. Below provided sample code demonstrate how to get the last modified date of an image.



//Declare variable to store file path for input image
string path = @"path_to_image\cat_eye.jpg";

using (Aspose.Imaging.RasterImage image = (Aspose.Imaging.RasterImage)Aspose.Imaging.Image.Load(path))
{
    // Get the date from [FileInfo]
    string modifyDate = image.GetModifyDate(true).ToString();

    Console.WriteLine("Last modify date using [FileInfo]: {0}", modifyDate);

    // Get the date from XMP metadata of [FileInfo] as long as it is not default case
    modifyDate = image.GetModifyDate(false).ToString();
                
    Console.WriteLine("Last modify date using info from [FileInfo] and XMP metadata: {0}", modifyDate);
}

Enhancements

Following enhancements have been introduced in this release.

  • Process of loading TIFF image has been improved.

  • Process of loading PNG image has been improved.

  • process of loading JPG image has been improved.

  • Exporting process of image in multi threaded environment has been improved.

Please refer to the release notes of Aspose.Imaging for .NET 3.8.0 for a full view of improvements along with sample code snippets for newly added features. If you are planning to upgrade the API to the latest revision, we strongly suggest you to check the Public API Change section to know what has been changed in the public API since your current version.

Aspose.Imaging for .Net Resources

The resources, you may need to accomplish your tasks:

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.