Hello guys, in this blog I would like to introduce you with new enhancements being made in Aspose.Imaging 19.4. The good thing about the Aspose team is that it releases both .NET and Java-based APIs simultaneously every month. The latest release provides you the ability to work with Device Independent Bitmap (DIB) files in C# applications.

In subsequent sections, I am going to give you a walk through the new features that have been included in API.

Work with Devise Independent Bitmap (DIB) Files

The DIB file format was developed to allow free image transfer regardless of the display device or operating system. It is similar to bitmap files, the only thing differentiating them being the lack of a file header and the fact that they’re not device-dependent. The DIB file format contains all the information required for displaying a bitmap including color palette and metric resolution. DIB files can store 2D images of various resolutions, widths or heights and with color depths of 1, 4, 8, 16, 24 or 32 bits per pixel.

Using Aspose.Imaging, now you can access the DIB files and may convert them to other file formats like PNG, BMP, or JPEG. In the following example, the demonstration of loading an existing DIB file, and its conversion to PNG is exhibited.

The similar Java-based implementation is like as under:

Word with CorelDRAW Drawing File (CDR)

CDR files are created with CorelDRAW. The CDR file format is proprietary and it is used by Corel as the default for saving images. It can store simple drawings and vector images. It is also capable of storing data used by CorelDraw such as nodes, layers, or segments.

In this version of Aspose.Imaging the support for CDR files has been included. In the following example below, an existing CDR file is loaded by passing the file path to the Image class static Load method.

The similar Java-based implementation is like as under:

Raster Image Masking

The process of Masking involves setting some of the pixel values in an image to zero, or some other “background” value. Aspose.Imaging supports both Manual and Automatic masking features.

Manual Masking

The following exhibit how to apply manual masking to a raster image.

The similar Java-based implementation is like as under:

Automatic Masking

The following sample demonstrates how to apply auto masking to a raster image.

The similar Java-based implementation is like as under:

Wait, there are many other features, enhancement, and bug fixes included in this release. Here you can get the detail!

When time allows you can check out API examples at Github, talk about this release and other API related issues in our forum.