Content

Written by Esben Elfving   
Tuesday, 08 January 2013 16:37

MDKGraphicsEngine 2.6 released

 

An update to the MDKGraphicsEngine, version 2.6, has been released. Version 2.6 of the MDKGraphicsEngine introduces new features especially for saving PSD files with layers and for working with clipping paths and alpha channels.

- Converting a clipping path to an alpha channel
- Anti-aliasing clipping path edges
- Creating Photoshop (PSD) files with multiple layers
- Setting blend mode, name, opacity and visibility for PSD layers.
- Converting an embedded transparency alpha channel to a layer mask

 

 

This new version introduces many new features in the areas of working with alpha channels, clipping paths and especially Photoshop layers. 27 blending modes with full support for transparency and new clipping path conversion features.

 

Convert an embedded clipping path to an alpha channel

Now an embedded clipping path can be rasterized into an alpha channel and saved either as a transparent background or as a normal alpha channel. This enables you to save an image as e.g. a PNG image with a transparent background and still keep the "cut-out" parts of the image intact. Previous versions of the MDKGraphicsEngine replaced the "cut-out" parts of the image with a specified background color. Now both ways of showing an image without the "cut-out" part is possible and you can choose which way is best in the current situation. Using the new way of hiding the "cut-out" parts also allows you to keep embedded clipping paths in the output image. When using the old way the output image is stripped of embedded clipping paths while saving.

 

Anti-Alias clipping path edges

Converting a clipping path to an alpha channel using the above mentioned functionality can now be done with anti-aliased edges. This gives a much smoother transition from the image data to the desired background color or transparent background. Doing a "cut-out" of an image with an embedded clipping path is also possible with anti-aliased edges in version 2.6.

 

Read more the new clipping path features and view sample code here.

 

Create PSD files with multiple layers embedded

A major improvement in the newly released version is that multiple layers can be added to an image during processing. Furthermore, if this image is saved to a PSD file the added layers can be embedded into the saved image and merged together into the composite image section. For each layer visibility, opacity, name and blending mode can be specified. All blending modes known from Adobe PhotoshopTM are supported and used to create the composite image when saving to a file. Opacity and visibility is also fully implemented in this version.

 

Create layer masks

When adding a new layer to an image a transparency alpha channel will be converted into a layer mask. This allows the user to transfer transparent backgrounds from a source image directly into a layer together with the image data.

 

Read more about creating PSD files with layers and view sample code here.

 

Last Updated on Monday, 04 February 2013 07:34
 
 
Copyright © 2013, Middleware Denmark ApS