• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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

 
Ranch Hand
Posts: 714
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is 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 of the Aspose.Imaging for Java 2.9.0 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 you need to do is use the newly exposed RasterImage.Dither method instead of creating & setting DitheringSettings and RawDitheringMethod properties as we 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 you 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
- Improve deflate unpack to process corrupted packed data.
- Fix in markers for jpeg images with rgb color mode
- Loading a Tiff and saving its fames to another Tiff renders the image in Black n White
- Crop for GIF works incorrectly
- ImageSaveException: Non-negative number required. Parameter name: srcOffset. while saving PNG to GIF
- Duplication of watermarks during image processing.
- Tiff image loading throws FrameworkException
- Incorrect Raster image saving work when created image width is lover than 125 px
- Gif export is very slow
- Export of bmp to gif hangs
- TiffFrames are stretched horizontally when saved individually from a multi-page TIFF
- Improve performance of JPEG saving
- Incorrect colors when image is converted to tiff
- Improve performance of JPEG loading
- Implement autoscaling for layout pages
- Support CAD files with no proper header defined
- ImageLoadException: Error in Layers, while loading certain DXF file
- TIFF Codec does not support PackBits compression method
- Converting images to PNG 1 bpp
- Image without exif data has colored half of it in yellow color
- Performance concerns while working with TIFF images having frames of huge dimensions
- RasterImage.loadPixels should return null in evaluation mode
- Jpeg to Gif conversion is different in .Net and Java
- Performance Issue with IBM's JDK
- Certain characters render as boxes while converting WMF to PNG
- Setting isTemporal to true causes 0 size file
- Conversion of Jpeg to Tiff results in black image
- Arrows rendered as square for generated PNG in Mac
- Loading a Tiff and saving it's fame to another Tiff renders the image as Black n White
- ImageLoadException: Image loading failed while loading a DXF
- Bad Jpeg Quality after Re-size
- com.aspose.imaging.exceptions.ImageLoadException: Image loading failed, while loading DXF file
- RasterImage.loadPixels should return null in evaluation mode
- JPG image generates with pink background

Newly added documentation pages and articles

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

- Customizing CAD Conversion

- Specifying Bit Depth for PNG Images

Overview: Aspose.Imaging for Java

Aspose.Imaging for .NET is an image processing & manipulation component that allows developers to create, edit, draw or convert images in their .NET application. It allows developers to convert image files to PSD, BMP, JPEG, PNG, TIFF and GIF formats. Moreover a set of pens, brushes and fonts can be used to draw images or add new elements & text to existing images. Aspose.Imaging for .NET works well with both web & windows applications. Moreover, it adds the support for Silverlight platform.

More about Aspose.Imaging for Java

- Homepage for Aspose.Imaging for Java
- Download Aspose.Imaging for Java
- Online documentation of Aspose.Imaging for Java

Contact Information

Aspose Pty Ltd
Suite 163, 79 Longueville Road
Lane Cove, NSW, 2066
Australia
Aspose - Your File Format Experts
[email]sales@aspose.com[/email]
Phone: 888.277.6734
Fax: 866.810.9465
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!