Device Independent Bitmap (DIB) file format support included in Aspose.Imaging 19.4

Share on FacebookTweet about this on TwitterShare on LinkedIn

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 Aspose team is that it releases both .NET and Java based APIs simultaneously every month. This way both API user remain recurrent with changes being made in APIs every month.

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

Working with Devise Independent Bitmap (DIB) files

The DIB file format was developed to allow free image transfer regardless of 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, demonstration of loading an existing DIB file and its conversion to PNG is exhibited.

The similar Java based implementation is like as under:

CorelDRAW Drawing File (CDR) support

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’s 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.