This week's giveaway is in the Java in General forum.
We're giving away four copies of Java Challengers and have Rafael del Nero on-line!
See this thread for details.
Win a copy of Java Challengers this week in the Java in General forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Multiple CAD Layouts Rendering, Specify PNG/GIF Transparency & Background Colors

Ranch Hand
Posts: 714
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.7.0. . This release contains many useful improvements; Most worth mentioning enhancement is the support for DWG 2005 revision 16.1, 2010 revision 18.0 and 2013 revision 19.0 AutoCAD formats. Starting with this release, Aspose.Imaging for Java has dropped the support for Java versions prior to v6 and has moved its codebase to Java 6 (Java 7 and 8 are also supported). Reason being, Sun/Oracle has discontinued the support for all JDK revisions prior to 1.6. Now the Aspose.Imaging for Java package contains a single Jar that works well with Java 6, 7 & 8. Aspose.Imaging for Java API can load AutoCAD drawings for possible conversion to PDF and raster image formats. With this release, the API has extended its support for the said conversion by allowing the users to select multiple layouts from a given DWG or DXF drawing, and render them to PDF or raster image formats. The API has exposed the CadRasterizationOptions.Layouts property of type String[] so you may specify more than one layouts at a time. While specifying multiple layouts for the CadRasterizationOptions.Layouts property, the resultant PDF and TIFF image would have multiple pages, GIF image would have multiple frames and PSD format would have multiple layers, where each page/frame/layer represents an individual AutoCAD layout. In case any other image format such as PNG, BMP, JPEG is selected to store the result then the API will render only the default layout; that is “Model”. Aspose.Imaging for Java API conceals the ugly details and provides an easy to use mechanism to specify ICC profiles via JpegImage class. Moreover, Aspose.Imaging uses the sample profiles of SWOP CMYK and sRGB embedded into its core therefore in most common usage cases, you do not need to seek for any specific profiles. Previously, Aspose.Imaging allowed to set the transparency color for PNG format. With this release, the API has extended its support for the GIF image, and have improved the public API to make the usability even simpler by exposing the relevant properties to the RasterImage class. The main new and improved features added in this release are listed below

- Support the Jpeg Compression Method while creating/saving TIFF images
- [Java] Check if a license has been properly set
- Support Jpeg compression for Psd thumbnails
- Support Autocad 2005 dwg format
- Support Autocad 2010 dwg format
- Add transparent and background color support for images
- Implement Autocad 2013 dwg format
- Export more than one layouts of CAD drawings to PDF & RasterImages
- Support for PSD files having CMYK color mode
- DWG to PDF: Support for text contents in the DWG drawings for rendering to PDF
- Retrieve the size of DWG drawing
- Conversion process hangs while converting TIFF with Old Style Jpeg Compression to other formats
- TiffImageException: Cannot decode strip 0. Details: There is no more data to read. at
- Drawing a PNG with transparent background on another image results in a black block
- ArgumentException: Value does not fall within the expected range, while resizing a PNG
- Creating a new PNG results in 0 size file
- ArgumentOutOfRangeException: Expected at least 2439 bytes for the line size, otherwise the destination data does not fit, at
- ImageSaveException: Expected at least 1356 bytes for the line size, otherwise the destination data does not fit, at
- Wrong text rendering in saved Emf images
- Metafile loading throws exception MetafilesException
- Metafile loading throws exception
- Metafile loading throws exception java.lang.IllegalArgumentException
- [Java] Setting Resolution for Existing Jpeg Image does not work
- Java BufferedImage support
- Saved TIFF images differ from source images
- Improve JpegOptions and JpegImage with new useful properties for export
- Improve decimal numbers rendering for different localizations
- ImageLoadException: The specified combination of color mode and compression method are not supported, while loading CMYK PSD files
- Image renders several times within the resultant image while converting GIF to PNG
- Colors are not retained while converting PNG to GIF
- ImageSaveException: The specified index lies out of the entries length. Parameter name: index, while saving PNG to GIF
- ImageSaveException: Expected positive number of bytes. Parameter name: bytesCount, while saving PNG to GIF
- ImageSaveException: Source array was not long enough. Check srcIndex and length, and the array's lower bounds. while saving PNG to GIF
- Offset and length were out of bounds for the array or count is greater than.. while saving PNG to GIF
- Value does not fall within the expected range, while converting PNG to GIF
- Image distorts after converting GIF to PNG
- Update exceptions in case of incorrect values for PdfOptions size and VectorRasterizationOptions
- Saved JPEG images differ from source images
- [Investigation Required] DWG to PDF: PDF seems to be blank when large DWG is rendered to smaller canvas with ScaleType.GrowToFit
- Investigate Hatch object for two attached dwg files
- Aspose.Metafiles incorrectly process pen weight (EMR_EXTCREATEPEN record)

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.

- Color Space Conversion for JPEG through ICC Profiles
- Specifying Transparency 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
- Demos of Aspose.Imaging for Java

Contact Information

Aspose Pty Ltd
Suite 163, 79 Longueville Road
Lane Cove, NSW, 2066
Aspose - Your File Format Experts
Phone: 888.277.6734
Fax: 866.810.9465
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic