Auto Layout Scaling for CAD Conversion & Optimized Dithering Mechanism using Java

It improved the imaging core with less resource consumption and more efficiency as compared to any of its predecessors. The dithering process is now more optimized and predictable. Moreover, it also includes setting auto layout scaling & much more.
By: Aspose
 
LANE COVE, Australia - June 5, 2015 - PRLog -- What's New in this Release?

Aspose development team is pleased to announce the new release Aspose.Imaging for Java 2.9.0. Aspose.Imaging for Java API has improved the imaging core for performance considerations by converting the internal structure to utilize the byte array instead of the com.aspose.imaging.Color array. With these changes in place, the latest revision is less resource consuming and more efficient as compared to any of its predecessors. Previously, the imaging core used the com.aspose.imaging.Color array to store the pixel information due to which each pixel had to occupy 24 bytes in the memory. This schema proved to be the performance bottleneck in scenarios where images having huge dimensions have to be processed because image required more memory to process and hence more time to flush the data. Most of the CAD drawings have more than one layouts stored in a single file, and each layout could have different dimensions. While rendering such CAD drawings to PDF, each page of the PDF could have different scaling according to the layout size. In order to make the rendering homogeneous, the Aspose.Imaging APIs have exposed the CadRasterizationOptions.AutomaticLayoutsScaling property. Its default value is false but when set to true, the API will try to search for a corresponding scale for each separate layout and draw them in corresponding manner by performing automatic re-size operation according to page size. Please check the article on Customizing CAD Conversion for more details and source code snippets for this feature. The dithering process is now more optimized and predictable. All developers need to do is use the newly exposed RasterImage.Dither method instead of creating & setting DitheringSettings and RawDitheringMethod properties is used to do with previous revisions of Aspose.Imaging for Java API. Upon calling the RasterImage.dither method the dithering is performed right in-place and users can then review the dithered results by loading pixels or raw data. In order to facilitate the users and to avoid the miss-configuration of the TiffOptions instance, the Aspose.Imaging for Java API has exposed another constructor for that TiffOptions class that accepts a parameter of type TiffExpectedFormat. Based on the selected value from the TiffExpectedFormat enumeration, the API auto configures all the mandatory properties for the TiffOptions instance in order to produce the desired results. Please check the possible values of TiffExpectedFormat parameter and their details at TiffOptions’ Configurations. This is a long awaited feature that will surely ease the developer’s life who wish to auto-rotate the Jpeg images to correct the orientation. Most digital cameras stores the orientation information along with the image data as EXIF tags of the JEPG images. Aspose.Imaging APIs use this information to perform the auto rotation on the Jpeg images to correct the orientation. Aspose.Imaging for .NET API has exposed a very easy to use mechanism to set the BitDepth for existing as well as new PNG images. With the release of version 2.9.0, the API has provided the BitDepth property for the PngOptions class that can be used to set the BitDepth as 1, 2, 4 or 8 bits for grayscale and indexed color types, whereas, for all other color types only 8 bits are supported at the moment. The main new and improved features added in this release are listed below

·         Compression Schemes for PNG File Format

·         Add support of multiline object during Cad -> Pdf export

·         Jpeg2000 support

·         Auto Correct the Orientation of a JPEG Image

·         TiffImageException: Cannot decode strip 0. Details: Cannot perform 2d decoding. Missing changes from previous row, at TiffFrame.Save

·         Setting isTemporal to true causes 0 size file

·         Watermark corrupts image data

·         Incorrect palette for dithered GIF images

·         FrameOptions.Orientation returns the same value before and after performing the rotation

·         Conversion of Jpeg to Tiff results in black image

·         Incorrect crop result of png image.

·         Loading JPEG image throws System.IndexOutOfRangeException

·         Optimize dithering process

·         Re-saving the TIFF image with Jpeg Compression renders the result in strange colors

·         Re-saving the TIFF image with default settings renders in black n white

·         Incorrect TIFF is produced after reloading

·         CAD to PDF renders blank page with CadRasterizationOptions.Layouts all layouts of the DWG

·         CAD to PDF does not render everything from the CAD layout to PDF

Newly added documentation pages and articles

Some new tips and articles have now been added into Aspose.Imaging for Java documentation that may guide users briefly how to use Aspose.Imaging for performing different tasks like the followings.

-          Customizing CAD Conversion: http://www.aspose.com/docs/display/imagingjava/Customizing+CAD+Conversion

-          Specifying Bit Depth for PNG Images: http://www.aspose.com/docs/display/imagingjava/Specifying+Bit+Depth+for+PNG+Images

Overview: Aspose.Imaging for Java

Aspose.Imaging for Java is an image processing & manipulation component that allows developers to create, edit, draw or convert images in their Java application. It allows developers to convert images to BMP, JPEG, TIFF, GIF, PNG & PSD formats. It draws images using advanced features like Graphics & GraphicsPath. The drawing feature is useful for adding shapes, building up new images or adding watermarks to images. It works well with both web & windows applications. It supports JDK 1.5 & above.

More about Aspose.Imaging for Java

- Homepage of Aspose.Imaging for Java: http://www.aspose.com/java/imaging-component.aspx

- Download Aspose.Imaging for Java: http://www.aspose.com/community/files/72/java-components/aspose.imaging-for-java/default.aspx

Contact Information

Aspose Pty Ltd

Suite 163, 79 Longueville Road

Lane Cove, NSW, 2066

Australia

http://www.aspose.com/

sales@aspose.com


Phone: 888.277.6734

Fax: 866.810.9465

Contact
Sher Azam
***@aspose.com
End
Aspose Pty Ltd. PRs
Most Viewed
Top Monthly News



Like PRLog?
9K2K1K
Click to Share